-
... 13); // -> [12, 8, 3, 2, 1, 1] asRatio This is like SimpleNumber:asFraction but hacked in order to handle rounding errors for harmonic interpretation of periodic decimals (0.333 will be 1/3 and not 333/1000) 0.333.asRatio; 1.667.asRatio; // ...
-
... esc.indexOf(\freq); // playOneNote replaces \freq // this is all a really awful hack; redesign later? if(i.notNil) { argsFromDesc.removeAt(i); argsFromDesc.removeAt(i); }; if(~args.isNumber) { ~args = [] }; if(argsFromDesc.size > 0) { ~args ...
-
... eE][\\-+]?[0-9]+)?", _.asInteger -> "(-[0-9]+|[0-9]+)" ]; } parse { |stream| // hack into CollStream -- will fail with other IO streams var match, type = types.detect { |assn| match = stream.collection.findRegexpAt(assn.value, stream.pos); ...
-
... r.abs < 1e-9).if { "" } { numb[0].asString ++ "/" ++ numb[1].asString }) } } // hack to ensure envelope state is properly updated + Env { setLevel { arg idx,value; (idx == 0).if { this.levels = [value] ++ this.levels[idx + 1.. this.levels.l ...
-
... .tempoMap ?? { TempoMap() }; if( skin.font.class != Font.implClass ) { // quick hack to make sure font is correct skin.font = Font( Font.defaultSansFace, 10 ); }; if( parent.isNil ) { parent = chain.class.asString; }; if( parent.class == St ...
-
... o, hi, inf) }, \lp -> { |lo, hi| Plprand(lo, hi, inf) } ]; ~numToAdd = 1e10; // hack: ~modifySource does min(~numToAdd, avail.size) ~localPrep = { ~pool = ~args[0].asArray; ~checkEmpty.(~pool, "pool"); ~maxDelta = ~args[1] ?? { 1 }; ~factor ...
-
... cl| this.isPlaying.not.if({ // also handles situation of empty bp // quite ugly hack: I can't directly override clock_ // because we have Object:clock_ :-\ if(value['clock_'].isFunction) { value.perform('clock_', cl); } { value[\clock] = cl ...
-
... .tempoMap ?? { TempoMap() }; if( skin.font.class != Font.implClass ) { // quick hack to make sure font is correct skin.font = Font( Font.defaultSansFace, 11 ); }; if( parent.isNil ) { parent = chain.class.asString; }; if( parent.class == St ...
-
... }); } ) ]++({|i| var avFollowInit= 60, avFollowLast= 0, avFollowCnt= 0; //TODO hack Pbindf(pbind, //av \instrument, ('sStream_'++avSynthType).asSymbol, \type, if(avSynthType==\VSTPlug, {\vst_midi}, {\note}), \vst, avVst, \chan, i+1, \buf, ...
-
... let bulletin bullfinch bullfrog bullhead bullhide bullish bullock bullseye bullwhack bully bullyboy bulrush bulwark bum bumble bumblebee bump bumptious bun bunch bundestag bundle bundoora bundy bungalow bungle bunk bunkmate bunny bunsen bun ...