Forums > MaxMSP

Fast Buffer Edit

January 30, 2012 | 8:31 pm

Hi everyone!

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

My first attempt looks like this:

– Pasted Max Patch, click to expand. –

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
January 31, 2012 | 8:44 am

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


January 31, 2012 | 11:28 am

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


February 1, 2012 | 9:04 pm

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.


February 1, 2012 | 9:15 pm

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


February 2, 2012 | 12:27 pm

Thanks again! The defer object made it work :)


March 28, 2012 | 8:43 am

Hello again,

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:

– Pasted Max Patch, click to expand. –

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 ;)


March 28, 2012 | 9:39 am

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


March 29, 2012 | 9:05 am

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


Viewing 9 posts - 1 through 9 (of 9 total)