gen~ param, data and codebox


    Jul 26 2013 | 4:37 pm
    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, Nikolas

    • Jul 26 2013 | 6:33 pm
      i would love to understand it too :/
    • Jul 27 2013 | 12:01 pm
      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...