Accessing samples in a buffer

Apr 8, 2011 at 7:12pm

Accessing samples in a buffer

Hey,
I have a question related to the buffer~ object. Is it possible to get a
data block (for example 500 samples) out of the buffer without peek~ and a counterloop?
I couldn’t figure it out. Maybe anybody knows how it works and can give me a hint.

Many thanks and best regards.

#56180
Apr 8, 2011 at 8:13pm

check out [mxj buf.Op] and the ‘crop’ message to buffer~. Here is an example of usage:

– Pasted Max Patch, click to expand. –
#201647
Apr 8, 2011 at 8:37pm

Thanks for the answer, but with the ‘crop’ object I would ‘destroy’ the buffer. I want to sum up samples within a block and than take the next and so on…up to the end of the buffer.

#201648

You must be logged in to reply to this topic.