Fast Buffer Edit
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. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 791.3ocyXt0aaBCEG+4To9cvBs2VVE9VHYR8g84XpphKmj5UvFAF0tUs9YeF Coirr1.TCMOzXwAWmi+4+mKNOc4EK7hTOBkdnuh9NZwhmLVVXsUaYwdCK7xB eLNMrzNQuXUVFH0dKaeoFdTaeAHSDxcnXkYTKTxWlwVkTWJ9ETOKL4J+81kU YBYJnsqKdu07Pc7clE51BHV23ZL6+EJfW+Il6WOPLehtoyRopz6WK+teyxvL 62r22JDgou3ThDqQUzO9Bk3YM96KundzLr78SiXUkTiz2An3phByTPkgY4of 6nBgDbEuFD3oAKjUS.VJ0gEZ2w.Lk8WkAeiqI.dBHvCEBMXEFEPYUpFIjZEJ pZ6VnvgfYSvUDi5f6yqEItWcDLAno.BSrjoIToDo1Zez8vwuFJTFyxl0ANlM 7wyFI7fYENFM4.b+ynRUUQLPFFInuUNj.aLCMfVOr4jhjWnZiM8OyglExaap Jzrn2LLRg8cOp97vvCoGQQLdifgzjvcL7wDkOX5PGObhpz5NkfGZBUbSQEx6 PPDEJ20YG2Ms55wuuxfxxvcv+qvhJ2cG7jM1bBXrsDK0FcfWOFLL3CcB08gD hsnOIvnquFwXXe+5jpRj8.xccivoc5QiELdgyvI1DjDIWcO7LxzrxNP6tzsM pp1ZxAqccerrIHtZmxzchuCirZzIsQVL1LFYQmfHqLPWnbXAm1zu7UV5fcV5 2dRnIHRxdQng18F+zLp8dOMct7VLh8l0jWZDRs+MlRzj2QevF2Lxos01BFtM wxJ1o.SGgXgYiZNjtEjgQovA4ddMpMJAFYhaMF6tb03UzO1ViOBUMqfWpPdz uYi0+qew+.vFpz5Gs0JWh5rGRfRsPFZ+8Z5LK5gy5NQRBHOPVjHJqkJV+0+0 OScriQ+.bLduHl+IcrLQRtxD7zd1gYT6sIZu8ooFH43GWYamhrxdwi5G53GN deh62AfYR3Yk+Xde8q4UWP6kawle+pWNlot0r6X9moNl49n84nze9crfdQL9 YZNQq3GeF5X3yUhg+.zXzYP7it4xKLC+ArM4R+N -----------end_max5_patcher-----------
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…?
Uzi is faster than metro. But you probably want to use jit.buffer~.
Check out #10 from jitter recipies book 1.
Have a look at buf.Op.maxhelp,
Tanks for your replies!
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.
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.
[uzi]-[DEFER]-[peek~] should work better.
Thanks again! The defer object made it work :)
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. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 585.3oc0VssaiBCD8YpT+GP94rUXy88s86nZUEAbotBriLl1rsZ+2W6wgjzz k.MkPSe.r7XyvYNyYF6Wu9JGzRwZZCx8mt25537p1hCXyXwoyfCpNacdUVCr QzxVkRvQK1rFusVzppnJXUbmYqM0eVQsdGsLiWhb+c25rBvYhkO9CR5VmsJS k+.iWdmjlqreHIv6FuEt33Ty.wq68NWoQ.iuE.fw+d8UlQ8vhuv3x6nwEDOX ujuagENZDoKRx2tzUxXTg33ybXwoOqAyVnnnqADfJn2SkCEs2K3JdVMDqneI YYUndIh+OI3i12WMrWfsiI53sexAiw.4jBjiexYibThxxJ5GNmy3pdjxGMmG AgSvHy36bjTmATT4cTd1xJ.CdStbP+GjBc2COuoTSbjh9SRXXYvTey6X7.LH YxIo1WXtAA3d4H+SliVrarWwU5oyX3fPyPj+YixpoMMYkz2yYkBkVWMCMZNI AUP.vHDPKYmfSlQEUtnkqKscwGUWEbJzjQGokScO8JqHwehVzjPfyRiGPXEd .yY2Fphwe2sEgelYgC3yFQqLuK35Zg3t2Orf1nX7LESeJ9tck71M8.qnfBqu M5JXMl9pECzXchwU57iqjwfqCQ+L.Ly8ZuDILSkgKYPBK5BEX9CmIqYEqD5N CapAwwjaBM201dNgsn9MSrU8g9v1LS1CDSbPNppHfIlWx2+REXlBD7f3J8KA WCKV+TvZywIYqV8DU1rwyVDoOG9QgzLOZgcNiama8LRReh08IAZKfW0u9GvW amJC -----------end_max5_patcher-----------
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 ;)
If you change the metro to a qmetro, does that work?
Yeah that works, thank you!
Still wondering, why it worked a few weeks ago…or was i only dreaming? ;)
Forums > MaxMSP