-
... e contains default values for a, b, c and d. p = Pbind ( [ \a , \b , \c , \d ], Pfunc ({ var out = Array .newClear(4); 3.do({ out[4.rand] = 10.rand + 1 }); out }) ).asStream; e = (a: 0, b: 0, c: 0, d: 0); p.next(e); ( 'c': 3, 'a': 5, 'b': 5 ...
-
... poClock.new; Pbind(\freq, rrand(440, 880)).play(~clock, quant: 1); Pbind(\freq, Pfunc({"beats: % tempo: %\n".postf(~clock.beats, ~clock.tempo); rrand(440, 1200) })).play(~clock, quant: 1); ~clock.tempo = 1 ~clock.setGlobalTempo(3, 90) ~cloc ...
-
... appens in the case of a Stream that will repeatedly evaluate a Function? // the Pfunc just describes what a Stream, polled from it, should do (evaluate a Function by the method next) // the Pfunc itself is not bound to a specific Environmen ...
-
... patterns, but - // especially important with event patterns: copying within the Pfunc function ensures // that buffered items of the *source* are not altered and second copying // (delegated to the MemoRoutine) ensures that items buffered i ...
-
... eries(1, 1, inf).trace, \impulseSus, 1, \impulseDec, 1, \impulseHold, 1, \plot, Pfunc({ |ev| { f.value( ev[\impulseAtt], ev[\impulseSus], ev[\impulseDec], ev[\impulseHold] ) }.defer; }) ).play; ) // 2. inspecting effect of impulseSus (EST) ...
-
... est ], inf ), // *** look up VGSamp info, and post the full event: ***/ \samp , Pfunc ({ |ev| ev.putAll( VGSamp .eventFor(ev)); \vgsamp }), \dur , 0.5 )).play; ) // all the drum-stroke names you can use: VGSamp .instDicts.neutral[ \Kendhang ...
-
... rn to modify a = AP(( def: { SinOsc.ar * EnvPerc.ar(release: 0.1) * 0.5 }, dur: Pfunc { ~dur.next } )).play(chans:2); //Click b = AP(( def: { Impulse.ar(0) }, dur: 1 )).play(chans:2); //Scale over a set number of beats ~change_clock_tempo = ...
-
... Pat, demandIndexUserNum, hsIndices| ^Pbind( \dur, durPat, \type, \rest, \dummy, Pfunc({|e| var timeGrains = ((thisThread.seconds - helpSynth.initSeconds) * helpSynth.granularity).round.asInteger, trigSynth, trigMsgID, trigSynthID, demandNum ...
-
... .collect { |x| ~dur = x } .trace \amp , Pseq ([0.2, 0.05], 15).trace ],[ \dur , Pfunc { ~dur / 2 }, \midinote , Pshuf ((60..85)) ] ]).trace.play; ) Ex. 3: Data sharing between streams of parallel PmonoPars // data sharing between streams of ...
-
... giator object // extraParms: values to put into the BP object ( Proto { ~noop = Pfunc { |ev| ev }; ~prep = { |base, bpKey| // BP(bpKey) may not exist yet ~base = if(base.isPattern and: { BP.exists(bpKey) }) { Plazy { Penvir(BP(bpKey).v, bas ...