Buffer~ size
Hey all,
This is my first posting... so bare with me.
I have only been using Max/MSP for a couple of months and I am very much excited about the potentials...
Anyway, my question has to do with buffer~ sizes. I know that by sending a "size $1" message I can set the buffer size, but is there a way to update the size (while recording, for instance) without clearing the buffer first????
Thanks in advance...
check out info~
thanks, but I don't quite see how info~ could help.
I want to be able to change the buffer size as I use it (say, I am recording but need more time than the initial argument), without clearing the existing material...
this is not possible. setting a new size to buffer will always clear it.
i don't know of a way to accomplish what you want, except using a
really big buffer (to cover all eventualities) or not using buffer to
record in the first place.
make the recording buffer as big as possible and copy your material
after the recording to a new buffer. look into [mxj buf.Op] (using
java to copy the buffers is quick). or use the crop message of the
waveform object, if you want to manually select the recorded material.
the other approach is to use recording to disk with [sfrecord~] and
to load your data back into a buffer~, if that is convenient for you.
bye,
volker.
Hey Junior, read the entire post next time, not only the subject ;-) !
Martin: changing the size of the buffer~ will always kill it's content
because a new object is created each time you resize it. One way is to
have an "average big sized" buffer~ which could suit your needs all
along the project without being resized. One other is to swap from one
buffer~ to another buffer~ while resizing. A last one would be to save
the content in a temp file and to reload it just after the resizing.
best
f.e
Quote: f.e wrote on Sun, 12 March 2006 01:27
----------------------------------------------------
> Hey Junior, read the entire post next time, not only the subject ;-) !
>
----------------------------------------------------
yeah, sorry about that, buffers and hangovers don't mix...
false ! i always made my best work at 8 AM with more pastis than blood
in my veins, if i may say...
Guess that settles that...
thanks for the help. until next time
Although this is an old old post I came up against the same problem and used this thread to solve the problem. Here's an example patch explaining how to resize a buffer while continuously replaying the buffer contents and meanwhile setting up a new buffer length (using [mxj buf.Op]). Hopefully it helps!