gen~ param, data and codebox

Jul 26, 2013 at 9:37am

gen~ param, data and codebox

Hello everyone,
it’s my first time using Gen~ and I might have a problem!
I can not understand if the “param” and “data” are shared between the main Gen~ patch and the each codebox.
First, I create an object [data dataName 50 5] in the main patch. When I type inside a codebox something like:

a = peek(dataName, i, 0);

it creates an error saying “variable voice is not defined”
I am sure I am missing something…
Why is there this error ?
Thank you in advance,

Jul 26, 2013 at 11:33am

i would love to understand it too :/

Jul 27, 2013 at 5:01am

well, as i understand, you have to also declare params, data and buffers, inside the codebox. It creates an alias to the param, data or buffer created outside the codebox…


You must be logged in to reply to this topic.