switching samples in gen

May 8, 2013 at 4:14am

switching samples in gen

i want to switch samples in my gen patch in sync with a window using sah. i have figured a work around (below), but is there a simpler way? like using sah to gate a param in sync with a window????

– Pasted Max Patch, click to expand. –
May 8, 2013 at 4:22am

by simpler, i mean only using one buffer and one sample object, changing the buffers reference in sync… if that makes sense…

May 10, 2013 at 2:35am

Any one?

May 10, 2013 at 3:19am
– Pasted Max Patch, click to expand. –


May 18, 2013 at 6:55pm

have a look at the thread from march 20 :
“Can I switch from buffer~ to buffer~ with gen~ ?”


it is pretty simple :-)



Jun 15, 2013 at 8:06pm

Thanks Robert, wow the real Robert Henke, im blushing!

Yes i am fully aware and able to change [buffer] and [data] references inside [gen~] using a message, that is covered in the gen help patch. (I try not to ask questions answered by help patches!)

my question is whether there is a way to change buffer references in sync with a [sah] object inside of [gen~]…

my example below does so using two [buffer] objects and a gate…

can it be done with one?… probably not because [gen~] can’t really store text based data only signal and matrix information…. oh well… :)



– Pasted Max Patch, click to expand. –


Jun 26, 2013 at 9:23am

No, currently there’s no way to switch buffer references in response to a signal event; the only option is to create several buffers with different references and switch between them using e.g. a selector operator, or an if() block in GenExpr.


You must be logged in to reply to this topic.