deerwolf
Newbie
Karma: 0
Posts: 1
|
 |
« on: September 02, 2006, 09:04:13 PM » |
|
Could anybody help me wtih this? Why can't I dynamically change an argument from a single value to an array without killing the audio? I'm sure I am making a simple mistake here:
x = {arg freqs = 800; SinOsc.ar(freqs, 0, 0.5)}.play // works fine
x.set("freqs", 5000) // pitch change is working x.set("freqs", 4000) x.set("freqs", 3000)
x.set("freqs",[6300, 4040, 2100].choose.postln) //select from array singly is OK... x.set("freqs",[2000, 7000, 1200].choose.postln) x.set("freqs",[1230, 3000, 1000].choose.postln)
//BUT....
x.set("freqs",[6000, 4000, 1000].postln) //change to array ("multi-chann expansion") kills it!
// BOOM setting new single pitch at this point blows up filter
x.free
Thanks in advance...
|