2 summary:: add to value of a key in event stream
3 related:: Classes/Paddp, Classes/Pmul
4 categories:: Streams-Patterns-Events>Patterns>Math
11 can be a pattern or a stream. The resulting stream ends when that incoming stream ends.
18 a = Padd(\freq, 801, Pbind(\freq, 100));
20 9.do({ x.next(Event.new).postln; });
27 a = Padd(\freq, Pseq([401, 801], 2), Pbind(\freq, 100));
29 9.do({ x.next(Event.new).postln; });
37 { arg out=0, freq=440, gate=1;
39 env = EnvGen.kr(Env.asr(0.001, 1, 0.2), gate, doneAction:2);
40 Out.ar(out, SinOsc.ar(freq, 0, env * 0.1))
45 a = Pbind(\dur, 0.5, \instrument, \sinegrain, \freq, 440);
46 b = Padd(\freq, Pseq([10, 30, 100], inf), a);