Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (100) Code (6) Doc (13) Help (1) Quark (80) SCDoc ↗ Forum ↗ Google ↗
  1. numberExtras Quark

    ... 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; // ...

  2. startup01-events Quark

    ... 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 ...

  3. parsenodes Quark

    ... 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); ...

  4. EnvScaleView Quark

    ... 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 ...

  5. UChainGUI Quark

    ... .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 ...

  6. preprocessor-generators Quark

    ... 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 ...

  7. Chucking Quark

    ... 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 ...

  8. UChainGUI Quark

    ... .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 ...

  9. sStream Quark

    ... }); } ) ]++({|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, ...

  10. unixdict Quark

    ... 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 ...

prev 1 2 3 4 5 6 7 8

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow