Forums > Gen

gen~ param, data and codebox

Jul 26 2013 | 9:37 am

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 | 11:33 am

i would love to understand it too :/

Jul 27 2013 | 5:01 am

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…

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

Forums > Gen