I need to collect the value data of an envelope so that I can then use out of SC.
I need to capture the values with better resolution than what I would get with the .levels and .times methods.
What I came up with is to run this simple function, poll the values of the EnvGen and then copy from the post window:
{WhiteNoise.ar(EnvGen.ar(Env.new([0, 1, 0, 0, 1, 0], [100, 180, 10, 100, 50], [\sine, -2, -14, \sine, -4]) ).poll)!2}.play
Which works, but I was wondering if there’s a better way of doing it.
Thanks,
N