Forums > Gen

switching samples in gen

May 8, 2013 | 4:14 am

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 | 4:22 am

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 | 2:35 am

Any one?

May 10, 2013 | 3:19 am
— Pasted Max Patch, click to expand. —


May 18, 2013 | 6:55 pm

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


it is pretty simple :-)



June 15, 2013 | 8:06 pm

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. —


June 26, 2013 | 9:23 am

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.

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

Forums > Gen