Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... scale ) * LFNoise1.kr(0.5).range(-45, -30).dbamp; input = mallet + (sing_switch.clip(0, 1) * sing); sig = DynKlank.ar(`[ [ (first = LFNoise1.kr(0.5).range(2424, 2444)) + Line.kr(20, 0, 0.5), first + LFNoise1.kr(0.5).range(1,3), LFNoise1.kr( ...

  2. Fields Quark

    ... (min,max,0,1)*contrast; //- ((1-contrast)/2); val = (color*val).floor.asInteger.clip(0,255); Integer.fromRGBA(val[0],val[1],val[2],255); }); image.pixels_(rgbs) ^image } asSCImageBi{ |rect, hsize=100, res = 0.1, contrast = 1, color1 = #[247 ...

  3. SHTSensor Quark

    ... * rHum) + c1; humidity = tempC * (t1 + (t2*rHum)) + rhlin; humidity = humidity.clip( 0.1, 100 ); } calcTempC{ tempC = rTemp * d2C; tempC = tempC + d1C; } calcTempF{ tempF = rTemp * d2F; tempF = tempF + d1F; } // from someone's arduino code ...

  4. 009-multiple-3d_synth Quark

    ... .linlin(0, width, dep.neg, dep) ); }); //--render Pen.fillColor= Color.grey(dep.clip(0, 1), 0.75); Pen.fillOval(Rect.aboutRedObject3D(o, ss, ff)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; })

  5. ParamGui Quark

    ... }; }; overflow = (newKeys.size - numItems).max(0); keysRotation = keysRotation.clip(0, overflow); newKeys = newKeys.drop(keysRotation).keep(numItems); specsToUse = newKeys.collect { |key| this.getSpec(key, object[key]) }; ^( object: object ...

  6. ParamGui Quark

    ... }; }; overflow = (newKeys.size - numItems).max(0); keysRotation = keysRotation.clip(0, overflow); newKeys = newKeys.drop(keysRotation).keep(numItems); specsToUse = newKeys.collect { |key| this.getSpec(key, object[key]) }; ^( object: object ...

  7. 5_analogToInflux Quark

    ... d, i| pad.action.add(\setInflux, {|ana| var name = q.inphlux.getHalo(\padNames).clipAt(i); q.inphlux.set(name, ana.value.pow(3)); //.pow(6)); // the pow(6) helps toflatten the steep curve of the FSRs as they are now. ana.value }) }; /* MFde ...

  8. CXMenu Quark

    ... zeToFit; view.bounds = Rect(0,0,buttonWidth,24 * nameFuncs.size); focus = focus.clip(0,nameFuncs.size - 1); this.guiBody; }) } doAction { view.children.at(focus).doAction } keyDownResponder { var kdr; kdr = UnicodeResponder.new; kdr.registe ...

  9. CXMenu Quark

    ... oFit; view.bounds = Rect(0, 0, buttonWidth, 24 * nameFuncs.size); focus = focus.clip(0, nameFuncs.size - 1); this.guiBody; }) } doAction { view.children.at(focus).doAction } keyDownResponder { var kdr; kdr = UnicodeResponder.new; kdr.regist ...

  10. trigSoundFile Quark

    ... The object knows the duration and file path of the soundfile, and can be set to clip off the start and end of the file. - start: region startoffset (samples or seconds) - end: end of the region (samples or seconds) - loop: loop mode on or o ...

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow