hsc3-0.8: Help/UGen/Envelope/pauseSelfWhenDone.help.lhs
pauseSelfWhenDone src
Pauses the synth when the 'done' flag of the unit at `src' is set.
> import Sound.SC3
> let { x = mouseX KR (-1) 1 Linear 0.1
> ; e = linen x 1 0.1 1 PauseSynth }
> in audition (out 0 (sinOsc AR 440 0 * e))
Run paused node (assuming no intermediate node is created).
> withSC3 (\fd -> send fd (n_run [(-1, True)]))
> let { x = mouseX KR (-1) 1 Linear 0.1
> ; e = linen x 1 0.1 1 DoNothing
> ; o = sinOsc AR 440 0 * e }
> in audition (mrg [pauseSelfWhenDone e, out 0 o])