Accessing samples in a buffer

Sheila's icon

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.

Ben Bracken's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

Sheila's icon

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.