-
... 110-1301, USA. */ +Pattern { miSC_repTypeFactor { |type| ^1 } eventShortcuts { ^Pcollect({ |e| EventShortcuts.miSC_replaceShortcuts(e) }, this) } symplay { |dict, clock, protoEvent, quant, maxNull = 128| ^PsymNilSafe(this, dict ?? { current ...
-
... veldict[event[\irama].value] ?? { leveldict[\default] } } } } /*PiramaOffset2 : Pcollect { *new { arg pattern, leveldict; ^super.new(pattern, { |event| var lag = leveldict[event[\irama].value] ?? { leveldict[\default] }; event[\lag] = event ...
-
... ([1,10], inf ) * Pfunc { ~a }; An even more generalized operation is the use of Pcollect, which defines the following Stream behaviour: Output of the source stream will be taken as input by the collecting stream, as with Pfunc the Function ...
-
... d } unmapMode { arg mode; ^mode.prUnmap(this) } } + Pattern { mapMode { |mode| ^Pcollect({ |item| item.mapMode(mode) }, this) } unmapMode { |mode| ^Pcollect({ |item| item.unmapMode(mode) }, this) } } + Stream { mapMode { |mode| ^this.collec ...
-
... p(this, scAccidentals) } } + Pattern { mapMode { |mode, scAccidentals = false| ^Pcollect({ |item| item.mapMode(mode, scAccidentals) }, this) } unmapMode { |mode, scAccidentals = false| ^Pcollect({ |item| item.unmapMode(mode, scAccidentals) ...
-
... == resultB, errorString, false) }; /* the ones commented out need to be checked Pcollect crashes the interpreter */ var functions = [ { |x| x }, { |x| Pseq([x, x]) }, { |x| Pseq([x, (y: 10)]) }, //{ |x| Pselect({ |event| event[\zz].notNil } ...
-
... also Patterns itself. So Patterns including functional code (e.g. Pfunc, Plazy, Pcollect) can, thanks to dynamic scoping, turn into different Streams, depending on the environment where streamifying happens ( Event patterns and Functions ). ...
-
... yet dly.do { |x| inval = buffer.wrapAt(max(readI + x, 0)).yield; }; ^inval } } PcollectFinal : Pcollect { var <>finalFunc; *new { |func({ |x| x }), pattern, finalFunc({ |x| x })| ^super.new(func, pattern).finalFunc_(finalFunc) } embedInStr ...
-
... ily refer to environmental variables - in case of Pbinds e.g. via Pfunc, Plazy, Pcollect, but more conveniently via the dynamic scope PLx suite - so VarGui can control environmental variables and synth controllers. For basic principles of u ...
-
... rn.asPattern; // for xfer pattern: each ->> command would wrap another layer of Pcollect // so, save the string *without* .collect ~phraseSeqString = pattern.asCompileString; ~phraseSeq = pattern.collect { |phr| ~lastPhrase = lastPhrase; if ...