Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (883) Code (145) Doc (91) Help (17) Quark (625) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. SchrittWechsel Quark

    ... aster fader (right-most) -> master volume q.blocks.do{ |block| q.god.ampAll(val.linlin(0, 127, 0, 1.5)); } }; (chan < 8).if{ //q.blocks[q.blockChannels.findKeyForValue(chan)].setActivityParam(\amp, val.linlin(0, 127, -85, 0).dbamp); q.block ...

  2. TeensyHeadTracker Quark

    ... the synth is initialized properly yawMidi.func_({|val| try{ synth.set(\yaw, val.linlin(0.0,1.0,(-pi),pi)) } }); pitchMidi.func_({|val| try{ synth.set(\pitch, val.linlin(0.0,1.0,(-pi),pi)) } }); rollMidi.func_({|val| try{ synth.set(\roll, va ...

  3. SGME_GUIPanel4 Quark

    ... ME.setParameterOSC( string: "/envFollower/" ++ 1 ++ "/range", value: knob.value.linlin(0,1,-5,5), addrForbidden: \GUI, ) }; range2.action = {|knob| synthiGME.setParameterOSC( string: "/envFollower/" ++ 2 ++ "/range", value: knob.value.linli ...

  4. Maths2 Quark

    ... sMaths2 = pluggedIsSignal or: { plugged >= 1 }; if(needsMaths){ phasor = phasor.linlin(-1,1,width.neg, 1-width); maths = phasor.bilin(0, width.neg, 1-width, 0, -1, 1); maths = 1-(maths.abs); maths = maths*postEnv; }; if(needsMaths2){ phasor ...

  5. MasterUI Quark

    ... .value_(0.4).action_({ | slider | masterGainSynth.set(\masterGain, slider.value.linlin(0,1,0,5)); }); if (prMasterBus.isNil, { stageMaster[\live][\element].enabled_(false); stageMaster[\live][\element].states_([["Live", Color.grey(0.4), Col ...

  6. testing-rms Quark

    ... (1.0) }; OSCFunc({ |msg| defer { var a = levels[msg[2]]; a.value = msg[3].ampdb.linlin(-40, 0, 0, 1); a.peakLevel = msg[4].ampdb.linlin(-40, 0, 0, 1); } }, "/rms"); CmdPeriod.doOnce { w.close }; ) // to stop it ~dirt.stopSendRMS;

  7. buffer-timed-loop Quark

    ... yBuf.ar(~buffer0.numChannels, ~buffer0, rate, Impulse.kr(triggerRate), startPos.linlin(0,1,0, ~buffer0.numFrames), 1)*mul;}); Ndef('block1').xset('triggerRate', <measured>); == radpostcont == (none) >> lt 2 == radpost == Ndef('recblock1', 0 ...

  8. SGME_Oscillator Quark

    ... r(scaledFreq, mul: pulseLevel, add: (-1*(pulseLevel/2)), width: 1-pulseShape) * linlin(scaledFreq, 100, 1000,1,0)); sigPulse = sigPulse + Pulse.ar(scaledFreq, mul: pulseLevel * linlin(scaledFreq, 100, 1000,0,1), width: 1-pulseShape); sigPul ...

  9. cheapPiano1 Quark

    ... i. delay = (1 / (freq * [2.pow(-0.04/12), 1, 2.pow(0.03/12)])); tonefreq = tone.linlin(0, 1, 1000, 5000); hammer = Decay2.ar( in: Impulse.ar(0.001), attackTime: 0.008, decayTime: 0.04, mul: LFNoise2.ar(freq: amp.linlin(0, 1, tonefreq, 2 * t ...

  10. interpolate Quark

    ... splineIntFunction( (0,1/50..1), p[1].y, p[2].y ) .do({ |item, i| Pen .lineTo( i.linlin( 0, 50, p[0].x, p[3].x, \none )@item ) }); }, 1, { p.collect( _ .y).interpolate(15, 'bspline' , false , c.value.linlin( 0,1,2,8 ).asInteger ) .do({ |item ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow