I have been working on the same thing bassically. I came up with 2 solutions. 1 indeed by using OSCresponder and SendTrig, but actually the one I ended up using was to just use a control rate bus to send my Ugen data to and then I build a loop with a Routine that accesses the bus with the .getn message and stores the data in an Array with a counter that gets incremented each time through the loop. If you need more specific code, I can put up a short example. Good luck, gr. Michael From: josh@xxxxxxxxxxxxxxxxx To: sc-users@xxxxxxxxxxxxxxxx Subject: Re: [sc-users] Fill array with UGen output Date: Sun, 28 Dec 2008 20:38:24 -0800 Take a look at OSCresponderNode and SendTrig. This would probably be the easiest way to do it (and access the values in the lang). Best,
josh
On Dec 28, 2008, at 5:49 PM, Schell wrote: Hi, I am wondering how to fill an array with the output of a control rate from a unit generator, possibly at pre-determined intervals [every 2nd, 3rd or 4th value]. Possibly a function that uses a ugen to return an array? I can't seem to achieve this on my own...
****************************************** /* Joshua D. Parmenter http://www.realizedsound.net/josh/ */ Chat met al je vrienden. Nodig ze nu uit voor Messenger! |