-
... ecay, 1, \dampen, 0.1, \amp, 1, \ctranspose, [-24, -21, -17], \amp, Pseq([0.1, 0.1, 0.2, 0.3, 0.4, 0.5, 0.8, 1, 2], inf) )).trace.play(~bpm); ) // ex. 4 ( Pstretch(Pn(Pgeom(0.5, 1.1, 14)), // can also stretch by pattern! ...
-
... mmon attributes are: period length = 2, magnitude relation of items = 1:10) p = Pseq([1,10], inf) * Pfunc { ~a }; ⧉ ✔ An even more generalized operation is the use of Pcollect, which defines the following Stream behaviour: Output of the sou ...
-
... and([Pwhite(-3,3,inf).round(1),1],[32,1],inf), 4),inf)-1 + [0,2,-1,-14], \dur, Pseq([4, [5,2,1]].convertRhythm / 2, inf), \strum, Pwhite(0,1/8,inf), \octave, [5,6] ).play;
-
... ave dt: Pwhite (0, 20), // detune (in cent) l: 0.2, // legato d: 0.2, // dur w: Pseq ((5, 10..40)/100, 4), // width (synth arg) r: Pseq ([0.1, 0.5], inf ), // rel (synth arg) ]).play ) // works also with other event patterns: Pmono, PmonoAr ...
-
... ({ 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_sine ...
-
... Spread panning between -1 and 1 // Combine parameters into Pbind and Pseq Ppar( tempos.collect { |tempo, index| Pbind( \instrument, \metronome, / ...
-
... value Examples ( var x; var func = { "an error happened".postln }; a = Pprotect(Pseq([1, 3, 3, Pfuncn({ Error.new.throw }), 2]), func); x = Pbind(\degree, a, \dur, 0.5).play; ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/ ...
-
... lta < ~beatsPerBar.value).if({ deltas.add(~beatsPerBar.value - totalDelta); }); Pseq(deltas, 1) }, { Pfinval(~amps.size, Pn(~divCycle.asPattern, inf)) }); }; ~makeAmpPattern = #{ ~compactPatterns.if({ Pseq(((~amps[0] == 0).if({ #[0] })) ++ ...
-
... back to the list pattern to get the next item, which is embedded and so on. p = Pseq([Pseries(0, 1, 3), Pgeom(10, 2, 3)], 1).asStream; p.next; // Pseq is embedded; first item is Pseries(0...), also embedded // Control is now in the Pseries ...
-
... po / originalTempo } ), 0.5, Pn( Pfindur(4, Pbind( \instrument, \bell, \accent, Pseq([2, Pn(0, inf)], 1), \amp, Pseq([0.3, Pn(0.1, inf)], 1), \decayScale, Pseq([6, Pn(1, inf)], 1), \dur, Pwrand(#[0.25, 0.5, 0.75, 1], #[2, 3, 1, 1].normalize ...