-
... efaultCleanupDt = 0.2; *new { |pbindData ...fxData| var srcPat, fxPat, pairs, fxEventsPat; srcPat = case { pbindData.isKindOf(SequenceableCollection) }{ Pbind(*pbindData) }{ pbindData.isKindOf(Pattern) }{ pbindData }{ true }{ SimpleInitErro ...
-
... Channels; SynthDef(instrument, synthFunc).add; this.addModule(synthName, { |dirtEvent| dirtEvent.sendSynth(instrument) }, test); } orderModules { |names| // names provide some partial order var allNames = modules.collect { |x| x.name }; var ...
-
... this.assertEquals( j, "{ \"null\": null }", "Use Ref(nil) to represent null in event"; ); // .parseJson allows us to store nil in a dict // which is not possible otherwise o = "{\"null\": null}".parseJSON; j = JSONlib.convertToJSON(o); thi ...
-
... ); { |notes| Pshuf(notes, inf) } => ArpegPat(\shuf); // microrhythms #{ |notes, event| var topNote, gateIndex, gate; topNote = event[\top]; Pn([event.delta, event[\length], topNote.tryPerform(\gate) ? 0.5], 1) } => MicRh(\blockFollow); #{ | ...
-
// methods for estimating number of events in a pattern // most base patterns are infinite + Pattern { estimateLength { ^inf } } + Punop { estimateLength { ^a.estimateLength } } + Pbinop { estimateLength { ^if(adverb == \x) { a.estimateLeng ...
-
... ction of the group of all sliders to record ~mktl.elAt(\sl).action = { |el| var event = (\type: \set).put(el.name, el.value); "rec: ".post; event.postcs; ~loop.recordEvent( event ); }; ) // for testing everything so far: // start recording ...
-
... ass.new(gens, phase1) } storeArgs { ^[gens, phase] } } Gbind : Gen { var <>protoEvent, <>pairs; *new { arg protoEvent ... pairs; //var event = gen.genCurrent.copy; var event = (parent: protoEvent); var endval = pairs.size - 1; if (pairs.siz ...
-
# EventArray A system based on arrays of events
-
... nsider a Pbind as follows (a bit contrived, but it could happen). Note that the event prototype 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.r ...
-
... nsider a Pbind as follows (a bit contrived, but it could happen). Note that the event prototype 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.r ...