2 summary:: Function pattern
3 categories:: Streams-Patterns-Events>Patterns>Function
4 related:: Classes/Pfuncn
7 Returns a link::Classes/Stream:: that returns values from the code::nextFunc::.
14 Stream function. In an event stream receives the current link::Classes/Event:: as argument.
16 Function that is called when the stream is reset. In an event stream receives the current link::Classes/Event:: as argument.
23 a = Pfunc({ exprand(0.1, 2.0) + #[1, 2, 3, 6].choose }, { \reset.postln });
33 SynthDef(\help_sinegrain,
34 { arg out = 0, freq = 440, sustain = 0.05;
36 env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction:2);
37 Out.ar(out, SinOsc.ar(freq, 0, env))
43 a = Pfunc({ exprand(0.1, 0.3) + #[1, 2, 3, 6, 7].choose }).asStream;
46 Synth(\help_sinegrain, [\freq, val * 100 + 300]);