-
... [ \midinote, Pkey(\val) ]).play; // also: // p = PHS(h, [], 0.15, [ \midinote, Pfunc { |e| e.use { ~val } } ]).play; // stop allows resuming, cleanup with free or Cmd-. p.stop; // HS synth still playing p.play; // resume the PHSplayer p.st ...
-
... egree, Pseq([0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0, \rest], inf), \scale, Pfunc({ a }, inf), \dur, 0.25 ); q = p.play; }) ) // change scale a = Scale.phrygian; // change tuning a.tuning_(\just); // can also set tuning at creation time ...
-
... xo, PLseq([0, 0, 1, 2]), // echo introduces delay, so do delay if no echo \lag, Pfunc { |e| e.fxo.asArray.includes(1).if { 0 }{ 0.2 } }, \a, 0.1, \att, 0.01, \rel, 0.1, \cd, Pkey(\att)+ Pkey(\rel) + 0.001 ); PLbindef(\echo, \fx, \echo, \dta ...
-
... ], 1), \dur, Pwhite(1, 3, inf) * 0.25 ), (swingBase: 0.25, swingAmount: 0.2) ), Pfuncn({ q.stop; Event.silent(1) }, 1) ]) ]).play; ) ⧉ ✔ Swing should not apply to triplets. Note that the rhythmic value 1/6 introduces floating-point rounding ...
-
... / PHSuse by the local variable ~val , e.g. by Pkey(\val) or a construction with Pfunc . In the case of several help synths (HSpar), there is the option of defining a separately timed pattern to switch between playing help synths, always mar ...
-
... et Math applyTo Synthesis kr ar ir tr sVarGui pVarGui sVarGuiSpecs pVarGuiSpecs pfuncPbinds Extensions by wslib asNote Inherited instance methods Undocumented instance methods * + ++ - / < <= '>> ='>>= abs acos ampdb archiveAsCompileString ...
-
... > 0) { player = Pn(Plazy { Pbind( \degree, Pn(Pseries(-7, 1, 16), inf), \step, Pfunc { |ev| step = ev[\degree] + 7; { plot.refresh }.defer(s.latency); }, \dur, PwarpDur(0.25, 4, curve, midpt, 1) ) }, inf).play; } { player.stop; step = nil; ...
-
... _grainlet, Ppar([ Pbind( \dur, Tdef(\z), \note, Pseq([1, 3, 2, 1, 0], inf), \x, Pfunc { TempoClock.default.elapsedBeats.postln } // posts the onset times ), Pbind( \dur, 4, // reference beat \sustain, 0.1, \note, 8 ) ]) ).play(quant: 1); ) ...
-
... (\switchIndex).collect(switch(_, 0, [0, 2.5], 1, [0, 7])), \legato, 0.2, \post, Pfunc {|e| e.use { "demandIndex: ".post; ~demandIndex.postln; "timeGrains: ".post; ~timeGrains.postln; "dur: ".post; ~dur.postln; "switchIndex: ".post; ~switchI ...
-
... 2, 0, SinOsc.kr(2 * 3).max(0) * 0.2) }); Ndef(\sound, Pbind(\dur, 0.17, \freq, Pfunc({ rrand(300, 700) }))); Ndef(\lfo, { LFNoise1.kr(3, 400, 800) }); Ndef(\sound).map(\freq, Ndef(\lfo)); Ndef(\sound, { |freq| SinOsc.ar([600, 635] + freq, ...