[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Best way to update numFrames of Buffer



What is the best way to manipulate the numFrames of a buffer in real time. Say I have a dictionary that I am updting its values dynamically, and sometimes rapidly.

Pseudo-code:

x = {
~dict = (val:val, val2:val2, etc.);
Buffer.alloc(s, numFrames: ~dict.values);
};

Is this above okay, or is there some other mechanism that copes with more efficiently.

Best,
K.