Fast Buffer Edit

Jan 30, 2012 at 8:31pm

Fast Buffer Edit

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…?

#61540
Jan 31, 2012 at 8:44am

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

#222100
Jan 31, 2012 at 11:28am

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

#222101
Feb 1, 2012 at 9:04pm

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.

#222102
Feb 1, 2012 at 9:15pm

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

#222103
Feb 2, 2012 at 12:27pm

Thanks again! The defer object made it work :)

#222104
Mar 28, 2012 at 8:43am

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

#222105
Mar 28, 2012 at 9:39am

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

#222106
Mar 29, 2012 at 9:05am

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

#222107

You must be logged in to reply to this topic.