Closed hems closed 10 years ago
a = (-> SinOsc.ar(440)).play() # return Synth Object
setTimeout ->
a.stop() # Synth Object can receive `stop`
, 500
nice! for some reason my tests were failing... shame on me :P
Is there a way to achieve "default value" for an argument, and then later "set" it.
like we would do in SC:
a = { arg freq = 400; SinOsc.ar( freq ); }.play
a.set( \freq, 55 )
CoffeeCollider doesn't has a symbol. So, use an object instead of a symbol.
like this
a.set(freq: 55)
:8ball:
Is there a way of stopping a function after its playing ?