< Back to IRCAM Forum

Eval-once mode inside a Generic Function

Hi,

I’m having a problem with a generic function that I created. When I connect the regular patch to a pulsemaker object the results are fine but when I connect the exact same patch compiled in a generic function it doesn’t work anymore. I’m receiving a message pointing to the problem: the variable nth-random is unbound. Ok, I got the problem, the nth-random function is in “evaluation once” mode. but I need the function nth-random to be “locked” so the algorithm work as I planned. Is there another opption? How could I solve this problem?

Captura-de-Tela-2017-09-04-às-16.41.28.png