Fast Buffer Edit

Deftoner's icon

Hi everyone!

For a bigger project i need to add the contents of two buffers into a new buffer.

Max Patch
Copy patch and select New From Clipboard in Max.

My first attempt looks like this:

It works perfectly fine, the problem is: its way too slow!
I need the operation to be done round about 80 times faster...

Dooes anyone know a way or an external, that could do the job faster, oder do i have to chain up 80 of the patchers above...?

grg's icon

Hi,
Uzi is faster than metro. But you probably want to use jit.buffer~.
Check out #10 from jitter recipies book 1.

roger.carruthers's icon

Have a look at buf.Op.maxhelp,
cheers
Roger

Deftoner's icon

Tanks for your replies!

@grg:
Yeah Uzi seems to be realy fast! But doesnt seem to work with peek and poke.

The Buffer Ops recipe is realy nice! I'll try to get it to work in my patch.

@roger.carruthers:
buf.Op seemed to be exactly what im looking for. The editing works fast enough for my purpose.
The problem is that there doesnt seem to be a way to add two buffers into one channel of another buffer.
At first i thought "merge" would do that, but it puts the contents of the buffers in seperate channels.

Roman Thilenius's icon

[uzi]-[DEFER]-[peek~] should work better.

Deftoner's icon

Thanks again! The defer object made it work :)

Deftoner's icon

Hello again,

Max Patch
Copy patch and select New From Clipboard in Max.

the project was already finished and everything seemed to work. Now, after i didnt work on the patcher for a few weeks, everything is messed up...
After a few hours of troubleshooting, i found the problem:

If the uzi-object is started by a "normal" bang, everything works fine. The counter hits is maximum flag after a few ms, even when there are many bangs in a row. But when i start the metronome, the counter needs about five seconds to count until maximum every time.
Im pretty shure, that this problem didnt exist a month ago...
How can that be? I'm confused, please help ;)

jvkr's icon

If you change the metro to a qmetro, does that work?

Deftoner's icon

Yeah that works, thank you!
Still wondering, why it worked a few weeks ago...or was i only dreaming? ;)