-
... ce methods Examples // comparing PstepNadd and Pstep3add (test) ( x = PstepNadd(Pseq([1, 2, 3]), Pseq([10, 20, 30, 40]), Pseq([100, 200, 300])).asStream; y = Pstep3add(Pseq([1, 2, 3]), Pseq([10, 20, 30, 40]), Pseq([100, 200, 300])).asStream ...
-
... mp, 0.4, Pfsm([ #[0, 3, 1], // starting places PmonoArtic(\sawpulse, \midinote, Pseq([78, 81, 78, 76, 78, 76, 72, 71, 69, 66], 1), \dur, Pseq(#[0.25, 1.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25], 1), \sustain, Pseq(#[0.3, 1.2, 0.3, ...
-
... . patterns = value Examples ( f = { |vals| vals.postln; }; x = PstepNfunc(f, [ Pseq([1, 2, 3]), Pseq([4, 5, 6]), Pseq([7, 8, 9]) ]).asStream; 50.do({ x.next }); ) ( f = { |vals| var r; r = vals.copy.removeAt(0); vals.do({ |item| r = item / ...
-
Pseq: Filter: Description Class methods Inherited class methods Undocumented class methods new Instance methods Inherited instance methods Undocumented instance methods embedInStream offset Examples Classes | Streams-Patterns-Events > Patte ...
-
... done when all of its subpatterns are done. ( Ppar([ Pbind(\dur, 0.2, \midinote, Pseq([62, 65, 69, 72], inf)), Pbind(\dur, 0.4, \midinote, Pseq([50, 45], inf)) ]).play ) ( // Ppars can be nested Ppar([ Pbind( \dur, Prand([0.2, 0.4, 0.6], inf ...
-
... // see also The pitch model below Pbind( \dur, 0.125, \legato, 0.2, \midinote, Pseq(#[60, 62, 64, 65, 67, 69, 71, 72], inf) ).play ) ⧉ ✔ ~finish Event.default contains a function bound to the Symbol 'finish' which is called for each new ev ...
-
... meaning varies from subclass to subclass. The default value for repeats is 1. A Pseq is a Pattern that cycles over a list of values. The repeats variable gives the number of times to repeat the entire list. ///////////////////////////////// ...
-
... ethods Examples // perform a sequence of addition and subtraction ( a = Preduce(Pseq(['+', '-'], 16), Pseq([0, 1, 2, 3], inf), Pseq([3, 4, 5], inf)); x = a.asStream; x.nextN(20); ) // duplicate and multiply ( a = Preduce(Pseq(['dup', '*'], ...
-
... eq=440, ratio=0.1; Pbind( \instrument, \pgrain, \dur, sustain.value / n, \freq, Pseq((1..n)) * ratio + 1 * freq.value // freq is a function, has to be evaluated ) }); Pdef(\sweep2, { arg sustain=1, n=8, freq=440, ratio=0.1; Pbind( \instrume ...
-
... 0, env)) }).add; ) ( a = Pfsm([ #[0, 1], 67, #[0, 0, 3], 72, #[2], 73, #[0, 2], Pseq([74, 75, 76, 77]), #[2, 3, 3], nil, nil ], inf).asStream; Routine({ loop({ Synth(\help_sinegrain, [\freq, a.next.midicps]); 0.1.wait; }) }).play; ) ( Pfsm( ...