Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... undle); ~sndbuf.updateInfo; s.sync; numNotes.do({|i| ~myScore = ~myScore.add([i.linlin(0, numNotes, 0.0, seconds - 2), [\s_new, \littleHOAgrain, 1000 + i, 0, 0, \buffer, ~sndbuf.bufnum, \grainDur, 0.1.rand + 0.1, \start, i.linlin(0, numNote ...

  2. msc-osc Quark

    ... vity * track.ignore.collect(_.not.asInteger) * track.invert.collect(_.asInteger.linlin(0,1,1,-1)) ) }); last_mugic_orientation = euler; }; if (batt[0] < 15 && (model.mugic_battery != batt)) { "Battery low! %\\% remaining".format(batt).warn; ...

  3. AbstractSPlayFileView Quark

    ... view.bounds.height*0.5; if(view.range>0, { if(y<midPoint, { view.setDeviation(y.linlin(0, midPoint, 0.5, 0), 0.5); }, { view.setDeviation(y.linlin(midPoint, view.bounds.height, 0, 0.5), 0.5); }); }); }); }; vZoomSlider.mouseMoveAction= vZoo ...

  4. GMFaderMultiSlider Quark

    ... super.values.do({ |value, index| if(super.polarity == \uni) { thisAlpha = value.linlin( super.min, super.max, thisMinAlpha, 1 ); } { if(value.abs == super.min) { thisAlpha = thisMinAlpha; } { if(value.abs == super.max) { thisAlpha = 1; } { ...

  5. OteyPianoStrings Doc

    ... ho)*EnvGen.ar(Env.asr(0,1,0.1),gate,doneAction:2); Out.ar(out, Pan2.ar(son * 1, LinLin.kr(freq,36.midicps,90.midicps,-0.75,0.75))); }).add; SynthDef(\piano_soundboard,{ var audio = In.ar([20, 21], 2); audio = OteySoundBoard.ar(audio); Out.a ...

  6. Pvelvet Doc

    ... ore fun ( p = Ppar(Array.fill(5, { |i| Pbind( \dur, 0.25, \legato, 0.6, \pan, i.linlin(0, 4, -0.7, 0.7) ) <> Pvelvet( Pbind(\degree, Pwhite(-2, 2, inf) + (i*5 - 7)), Pwhite(5, 9, inf), (degree: \rest) ) })).play; ) p.stop; ⧉ ✔ helpfile sour ...

  7. Phasor Help

    ... .ar(rate); sr = SampleRate .ir; x = Phasor .ar(trig, rate / sr); SinOsc .ar( [ LinLin .kr(x, 0, 1, 600, 1000), // convert range from 0..1 to 600..1000 1000 // constant second frequency ], 0, 0.2) }.play; ) // two phasors control two sine f ...

  8. MultiThreading Quark

    ... ~num = 1; ( SynthDef(\testSine, { var sig = SinOsc.ar(\freq.kr(440) + \fm.ar(0).linlin(-1, 1, \low.kr(-100), \hi.kr(100))); Out.ar(\outFm.ir(0), sig); //fm output Out.ar(\out.ir(0), sig.dup * \scale.kr(1)); }).add; ) //This will work! The n ...

  9. Visual gain reduction meter by jpdrecourt (jpdrecourt) Code

    ... update oscFn = OSCFunc({arg msg; { indicator.value = (1-msg[3]).ampdb.linlin(maxReduc, 0, 0, 1); }.defer; }, '/level', s.addr); }.fork(AppClock); ) // Try it with this simple example ( // something to meter b = B ...

  10. conditional-control_gamepad Quark

    ... s.do {|ndef| if (ndef.getHalo(\actBut).value > 0) { ndef.setUni(\freq, el.value.linlin(0, 1, 1, 0)) } }; }; // left x sets modIndex m.elAt(\joy, \l, \x).action_{|el| q.ndefs.do {|ndef| if (ndef.getHalo(\actBut).value > 0) { ndef.setUni(\mod ...

prev 61 62 63 64 65 66 67 68 69 70 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow