-
... ith very condensed syntax. This is already possible with standard patterns like Pseq etc. – PLx list patterns fit this concept as their referenced Arrays/Strings can be replaced on the fly. Examples below also use EventShortcuts to minimize ...
-
... d, df, ds, e, ef, f, fs, g, gf, gs ] [\c, \a, \f, \e].asNote; -> [ 0, 9, 5, 4 ] Pseq([\c, \a, \f, \e], inf).asStream.nextN(10); -> [ 0, 9, 5, 4, 0, 9, 5, 4, 0, 9 ] ⧉ ✔ helpfile source: /tmp/scquark_hs/MusicalNotation/HelpSource/Classes/Note ...
-
... do({ b.next.postln }); ) // return also a subpattern: ( var a, b; a = Prand([1, Pseq([10, 20, 30]), 2, 3, 4, 5], 6); // return 6 items b = a.asStream; 7.do({ b.next.postln }); ) // Prand used as a sequence of pitches: ( SynthDef(\help_sineg ...
-
... es | Streams-Patterns-Events > Patterns'>Patterns > Patterns>List'>List Place : Pseq : ListPattern : Pattern : AbstractFunction : Object interlaced embedding of subarrays Source: ListPatterns.sc See also: Ppatlace Description Returns elemen ...
-
... t ) . key . key = value . repeats . repeats = value Examples ( var a, b; a = Pn(Pseq(#[1, 2, 3], 1), 4); // repeat pattern four times b = a.asStream; 16.do({ b.next.postln }); ) // sound example ( SynthDef(\help_sinegrain, { |out = 0, freq ...
-
... lating at audio rate ~seq = AlgaSequencer(( freq: ( rate: \audio, chans: 2, in: Pseq([ AlgaTemp({ SinOsc.ar([Rand(1, 100), Rand(1, 100)]) }, scale: [Pwhite(220, 440), Pwhite(440, 880)]), [440, 660], 880 ], inf), time: Pwhite(0.01, 1) ), amp ...
-
... ch they appeared, dropping nils by default q.bufSeq // repeat original sequence Pseq(q.bufSeq).play // play in reverse order, as Stream has been finished there's also a nil to be dropped Pseq(q.lastValues.drop(1)).play // counted embedding ...
-
... { SinOsc.ar(\freq.kr(220) + \fm.ar) * EnvPerc.ar(release: 0.5) }, dur: 0.5, fm: Pseq([ AlgaArg(b, scale: [-100, 100]), AlgaArg(c, scale: [-200, 200]) ], inf) )).play(chans: 2); }); ) ⧉ ✔ helpfile source: /tmp/scquark_hs/AlgaLib/HelpSource/C ...
-
... // unconvert it back to string StringConverter.unconvert(a); // play the score Pseq(a).play; ⧉ ✔ helpfile source: /tmp/scquark_hs/GamelanPatterns/HelpSource/Classes/StringConverter.schelp link::Classes/StringConverter::
-
... t legato needs to be scaled down - still not working properly b= Pbind(\degree, Pseq([0, 5, 2, 1, 0, 5, 2, 1, 0, -1], inf), \dur, Pseq([1, 1, 1, 1, 0.25, 0.25, 0.5, 1, 1, 1], inf), \legato, Pfunc({a.beatDur})).play(a, quant:4) a.shift= -3; ...