Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (3508) Code (266) Doc (1134) Help (293) Quark (1779) Plugin (36) SCDoc ↗ Forum ↗ Google ↗
  1. README Quark

    ... SplineGui(l).gui(nil,1000@1000); // used like a long envelope b = LinearSpline( Array.fill(60,{ arg i; [ i,1.0.rand ] }) ); b.gui(nil,1200@300); { PinkNoise.ar * SplineGen(b).kr(doneAction:2) }.play // travel along the spine of the spline o ...

  2. SCLOrkSoundFile Quark

    ... l.string = ""; }, { var selection = soundFileView.selection(0); // Selection is array of [ start, length ] where both units are in frames. var startTime = (selection[0] / soundFile.sampleRate).round(0.01); var startNorm = (selection[0] / so ...

  3. TestMoreSpecs Quark

    ... + "should produce a stream of events" + c + c.findKey) },{ e = f.asStream; d = Array.fill(100,{e.next}).reject(IsNil); if(c.isKindOf(ControlSpec),{ minval = d.minItem; maxval = d.maxItem; mean = d.mean; //d.do({ |g| g.postln }); this.asser ...

  4. SynthBoxView Quark

    ... .notNil, { spec = specOverride.asSpec; // When the ControlSpec is defined as an array. }, { spec = key.asSpec; }); if (spec.isKindOf(ControlSpec), { newView = SynthBoxSliderView(key, spec); newView.valueMapped = synthDesc.controlDict[key].d ...

  5. MIDIWindow Quark

    ... svar <sourceNames = nil; *new { arg connect = false, current; // connect can be array or single var clientConnectInButton, portPopUp, clientPopUp; var nSources, noMidi = false; var getSourceNames; var font; var connectAllButton; // only one ...

  6. WFSArrayPanDir Quark

    WFSArrayPanDir : WFSArrayPan { ar { |source, inPos, int, direction = 0, sines = #[0,1], sineMul = 1, mul = 1, add = 0, taper = true| // inPos: Point or Polar var difx, dify, sqrdifx, inFront, crossing, delayOffset; var globalDist, globalAng ...

  7. extColor-web Quark

    ... ^out; } } roundHex { ^Color.newHex( this.hex ) } findWebColor { arg table; var array = []; table = table ?? { Color.web }; table.keysValuesDo({ |key, value| if( value == this ) { array = array.add(key) }; }); ^array.sort; } *webNameIndex { ...

  8. NMLAuthenticate Quark

    ... { // OSC sends Strings as Symbols, which is a minor pain, so convert Strings to Arrays of ASCII here if(challenge.isKindOf(String), { challenge = challenge.ascii }); challInds = Pn(Plazy({Pshuf((0..(challenge.size - 1)), 1)}), inf).asStream ...

  9. fmBass Quark

    ... relFraction); scale = Select.kr( which: InRange.kr( in: scale, lo: 1, hi: inf), array: [ DC.kr([attFraction, relFraction]), DC.kr([attFraction/scale, relFraction/scale]) ]); scale = scale * (att + rel); mAtt = scale[0]; mRel = scale[1]; // ...

  10. ddwSnippets Quark

    ... p.isNil or: { not(temp === action or: { temp.isKindOf(FunctionList) and: { temp.array.includes(action) } }) }) { Document.globalKeyDownAction = temp.addFunc(action); if(verbose) { "DDWSnippets successfully enabled".postln }; } { if(verbose) ...

prev 131 132 133 134 135 136 137 138 139 140 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow