peek, poke, buffers and metro

neuwirthe's icon

I am using peek and poke to transfer and modify contents of one buffer to another buffer.

Both buffers have size 512.

I do not understand why this only works when I habe a counter triggered by metro going up to 22050. Why is it not working when the counter is going up to 512?

buffer_size.maxpat
Max Patch


double_UG's icon

you Buffer is 512 ms, add @samps 512 to make it 512 samples

neuwirthe's icon

How can I set metro to stop after sending 512 bangs?

Essentially I need a loop constract to copu the content of one buffer to another one and it should stop when the transfer is completed.

double_UG's icon

use "uzi" no need for metro and counter

double_UG's icon

or this

Source Audio's icon

no need for poke, peek can read and write.

even to same buffer

Roman Thilenius's icon

22050 -> 512

buffer size argument is in ms