Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (928) Code (86) Doc (150) Help (40) Quark (649) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. MKtlGUI Quark

    ... nds, label| var vw; vw = NumberBox( parent, bounds.insetBy( MKtlGUI.margin ) ) .clipLo_(0).clipHi_(1) .step_(0.01).scroll_step_(0.01); if( vw.respondsTo( \maxDecimals_ ) ) { vw.maxDecimals = 4; }; vw; }, 'fader': \slider, 'xfader': \slider, ...

  2. SplineGui Quark

    ... ',ci); ^[i,model.controlPoints[i].size-1] }; i = (this.detectPointIndex(p) - 1).clip(0,model.controlPoints.size-1); cps = model.controlPoints[i]; if(cps.size == 0,{ return.value(i) }); if(p[0] < cps.first[0],{ return.value(i,0) }); if(p[0] ...

  3. GD_ToolboxWindow Quark

    ... ect\cf0 (2+vw2,os,vw2,vh))\ .action = \{ \cf3 |v|\cf0 \ v.value = v.value.asInt.clip(3,40);\ panels.do(\{ \cf3 |panel|\cf0 panel.gridStep = v.value \})\ \ \};\ \ gridNB.align_(\cf5 \\center\cf0 ).value_(10).visible = \cf3 false\cf0 \ \}\ \ ...

  4. painter Quark

    ... ulateVColor { arg vCount, alpha = 0.7 ; var r, g, b ; vCount = (vCount*colFact).clip2(1) ; // scaled // a mapping, empirical r = vCount ; g = vCount ; b = 1-vCount ; ^Color.new(r, g, b, alpha) } update { arg theChanged, theChanger, more; // ...

  5. GMGridView Quark

    ... ateContainer(dict); { this.refresh; }.defer; } updateContainer { |container| // Clip values // to prevent exiting the grid container[\position].x = max( 0, container[\position].x ); container[\position].y = max( 0, container[\position].y ); ...

  6. UScoreView Quark

    ... View.updateSliders; }; }; if( followPos ) { scoreView.moveH = (score.pos / dur).clip(0,1); } { scoreView.refresh; }; } currentEditor{ ^scoreEditorsList.last } baseEditor{ ^scoreEditorsList[0] } currentScore{ ^scoreEditorsList.last.score } i ...

  7. Envelop Quark

    ... quared + (2 * slope * remain)).max(0).sqrt - a / slope}; elapsed = elapsed + tt.clip(0, segDur); remain = 0; }; }; }; if(remain > 0) { elapsed = elapsed + (remain / levels.last.max(1e-12)) }; //extend past the end ^elapsed; } // Intergral o ...

  8. FbNode Quark

    ... every FbNode. delaytime - the amount by which to delay the signal. This will be clipped to be between one block size (about 14 milliseconds by default) and the FbNode's maxdelaytime. If you didn't set a maxdelaytime when creating the FbNode ...

  9. SamplerQuery Quark

    ... , globalDur| var mOnset = bendWall.cumIntegral(onset); var pts = [0, peakOffset.clip(0, len), len]; var taus, levels; gEnv.timeLine.do{|tl| var pNom = (tl * globalDur) - s0; if((pNom > 1e-9) and: {pNom < (len - 1e-9)}) { pts = pts.add(pNom) ...

  10. SPList Quark

    ... ion; array.doAdjacentPairs(function); } // accessing at { arg i; ^array.at(i) } clipAt { arg i; ^array.at(i.clip(0,this.size -1))} wrapAt { arg i; ^array.at(i.wrap(0,this.size -1))} foldAt { arg i; ^array.at(i.fold(0,this.size -1))} put { a ...

prev 61 62 63 64 65 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow