-
... ern method patterns can be turned into midi files as well: ( p = Pbind ( \dur , Prand ( [ 0.25 , 0.5 , 1 ], inf ), \freq , Pwhite ( 440 , 880 ), \db , Pwhite ( -40 , -10 ), \legato , Pwhite ( 0.25 , 4 ) ); m = SimpleMIDIFile ( "~/Desktop/te ...
-
... event switch according to select Pn(Pswitch1([p, q, r], Pwhite(0, 2))).play // Prand(patternList, repeats) - random selection from list Prand([p, q, r], inf).play // Pxrand(patternList, repeats) - random selection from list without repeats ...
-
... pattern you're sending in. // choose arpeggiation types at random from the list Prand([\up, \down, \random], inf) =>.arpeg BP(\ch1); ⧉ ✔ A Symbol may be used to retrieve a predefined pattern from the Pdefn class; if the Pdefn doesn't exist, ...
-
... ; // Linux users: MIDIOut(0, MIDIClient.destinations[0].uid) a = Pbind(\degree, Prand([1, 2, 3, [0, 5]], inf), \bend, Pwhite(0, 76, inf)); // chain a midi event into the pattern and play it (see Pchain) (a <> (type: \midi, midiout: m)).play ...
-
... ], 1)], inf), \midinote, 0.6*Pseq([ Pseq( [Pn(Pseq([67, \rest],1), 4), 67, Prand([63, 64, 65, 66, 68, 69, 70, 71], 1)], 3), Pseq( [Pn(Pseq([67, \rest],1), 4), \rest], 1)], inf), \legato, 0.75, \amp, 0.025, \tempo, 126/60 ); ...
-
... ) }); // quelle (aka source) produces sound t.filter(\f, { |input| LFPulse.kr(ExpRand(1, 10), 0, Rand(0.1, 0.5)) * input }); // filter processes sound t.filter(\g, { |input| CombL.ar(input, 0.2, Rand(0.03, 0.2), 1.3) }); // use them in code ...
-
... PinkNoise.ar(amp) * Decay2.kr(Impulse.kr(0), 0.01, 0.05), sig = Klank.ar(`[ { ExpRand(400, 1600) } ! 4, 1 ! 4, { ExpRand(0.1, 0.4) } ! 4 ], exc, freqscale: accent + 1, decayscale: decayScale); DetectSilence.ar(sig, doneAction: Done.freeSelf ...
-
... Pvelvet : FilterPattern { var <>num, // should be >= 1 <>zero; *new { |pattern(Prand([-1, 1], inf)), num = 1, zero = 0| ^super.new(pattern).num_(num).zero_(zero) } embedInStream { |inval| var stream = pattern.asStream; var numStream = num. ...
-
... 4, // reference beat \sustain, 0.1, \note, 8 ) ]) ).play(quant: 1); ) Tdef(\z, Prand([1, 1, 0.23, 0.5, 0.5], inf)); // exchange time pattern Tdef(\z, Pseq([1, 1, 1, 1], inf)); // pattern stays in sync. Tdef(\z, Pseq([1, 1, 1, 0.5, 0.5], in ...
-
... inote , Pkey ( \thisVal ) + Pseq ([0,1], inf ), \legato , 0.2 ] ], hsIndices: [ Prand ([0,1], inf ) ] ).play; ) p.free; // hsIndices also accepts collections of indices or patterns thereof, referenced by ~theseVals (which is always a collec ...