-
... k.play({ TempoClock.beatsPerBar = 3 }, -1); // Then... ( p = Ppar([ PTimePoints(Pbind( // randomly-ordered pitch-class row \row, Pshuf((0..11), inf), \midinote, Pkey(\row) + 60, \timept, Pkey(\row) * 0.25, \amp, 0.5 )), Pbind( \pan, Pseq([- ...
-
... .05; c=ExternalClock(TempoClock(2.1)).play; //playExt= play on External Clock p=Pbind.new.playExt(c); q= Pbind(\dur,Pseq([0.25,0.25,0.5],inf),\freq,Pseq([330,330,550],inf),\sustain, 0.1).playExt(c); q.mute; q.unmute; p.stop; q.stop; ~buffer ...
-
... doneAction:2); var z= SinOsc.ar(freq, 0, amp); Out.ar(out, z*e); }).add; ) ( b= Pbind( \instrument, \redMatrixMixerTest, \degree, Pseq([0, 1, 5, 4, 3, 4], inf), \dur, 0.25, \amp, 0.7, \out, Pseq([0, 1, 2, 3], inf) ).play; ) a.gui; //optiona ...
-
... , 11] t.ratios; // [1, 1.0594630943591, 1.1224620483089, 1.1892071150019, etc.] Pbind(\scale, Scale.major(t), \degree, Pseq((0..7) ++ (6..0) ++ [\rest], 1), \dur, 0.25).play; // use non-standard tuning t = Tuning.just; t.semitones; // [0, 1 ...
-
... ) // Then we can use it in a pattern: ( TempoClock.default.tempo = 1.2; Ppar([ Pbind( \instrument, \help_mdapiano, \degree, Pseq([ 0, 7, -5, 7, 0, 5, -7, 5, -2, 5, -7, 5, -2, 3, -9, 3, 0, 7, -5, 7, 0, 5, -7, 5, -2, 5, -7, 5, -2, -3, -4, -5 ...
-
... .plot; //similar PLorenzN(0.2, 15, 20, 2.8, 0.05).asStream.nextN(1000).plot; a= Pbind(\dur, 0.05, \midinote, PLorenzN(0.2, 15, 20, 2.8, 0.05, mul:8, add:60)).play a.stop ⧉ ✔ helpfile source: /tmp/scquark_hs/UGenPatterns/HelpSource/Classes/P ...
-
... is the transposer; Pseq is the chord // The chord is like an "inner loop" ( p = Pbind( \midinote, Pwhite(48, 72, inf) +.x Pseq(#[0, 4, 7, 11], 1), \dur, 0.125 ).play; ) p.stop; ⧉ ✔ Collection operations on patterns Some of the things you ca ...
-
... instance methods Examples a= RedMixer(#[20, 40, 60, 80]); c= RedMixerGUI(a); b= Pbind(\degree, Pseq([0, 5, 6, 3, 2, 1], inf), \out, Pseq([20, 40, 60, 80], inf), \dur, 0.5, \amp, 0.7).play; a.channels[1].vol= -12; a.channels[2].bal= -0.4; c. ...
-
... ; // make a PdefGui g.object = Pdef(\a); // show when a Pdef is put in Pdef(\a, Pbind(\note, 12)); // show whether it has a source Pdef(\a).play; // show whether playing, stopped, or ended, and pausable Pdef(\a).set(\dur, 0.25); // show whe ...
-
... ynth(\default); s.map(\amp, o['/1/fader1'].asBus); s.free; ⧉ ✔ as a Pdefn ( p = Pbind( \instrument, \default, \dur, 0.5, \degree, Pxrand((0..10), inf), \amp, o['/1/fader1'].asPdefn, ).play; ) p.stop; ⧉ ✔ as a raw value o['/1/fader1'].value; ...