Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (883) Code (145) Doc (91) Help (17) Quark (625) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. Function to extract audio from youtube + example usage by gosub (gosub) Code

    ... 2], descent); var frames = BufFrames.kr(bufnum); var lf = LFNoise0.ar(cuts).linlin(-1, 1, 0, frames); var snd = PlayBuf.ar(2, bufnum, BufRateScale.kr(bufnum)/rates, Impulse.kr(cuts), startPos: lf); snd = Splay.ar(snd.flatten.scra ...

  2. midi soft takeover by meunierfabien (meunier.fabien) Code

    ... , chan, src; var guiControl, midiControl, treshold; midiControl = val.linlin(0, 127, 20, 20000); guiControl = knob.value; treshold = 500; // adapt this with your needs, it depends on the values of step in ControlSpec and ...

  3. extPoint-variousOps Quark

    ... rap, lo, hi ) } fold { arg lo, hi; ^this.binaryPerformOnEach( \fold, lo, hi ) } linlin { arg inMin = 0, inMax = 1, outMin = 0, outMax = 1, clip=\minmax; ^this.binaryPerformOnEach( \linlin, inMin, inMax, outMin, outMax, clip) } linexp { arg ...

  4. sndBuffer Quark

    ... PlayBuf.ar(1, bufnum, rate: BufRateScale.kr(bufnum) * rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(bufnum)), loop: loop); sig = BLowPass.ar(sig * envGen * amp, Lag.kr(lpassFq, 0.02)); sig; };

  5. SimpleMIDIFile help by wingel-prez-mendoza (Wingel Pérez Mendoza) Code

    ... ndow, Rect(30, 40, 50, 320)); fader.action_({|obj| var tr; tr = obj.value.linlin(0,1,-12,12).postln; tr + ~transpose; {a.allNotesOff}; }); button.states = [["Off", Color.white, Color.black], ["On", Color.black, Color.red]]; but ...

  6. midi_note_gate Quark

    ... \toRange ); curve = unit.get( \curve ); if (abs(curve) < 0.001) { value = value.linlin( *fromRange ++ [ -1, 1, \none ] ); } { value = value.lincurve( *fromRange ++ [ -1, 1, unit.get( \curve ), \none ] ); }; if( unit.get( \invert ).booleanVa ...

  7. magSmooth Quark

    ... 0 ) * 1; normal = IFFT.ar( fft1, 0 ) * 1; sig = XFade2.ar( normal, conv, noise.linlin(0,1,-1,1) ); UOut.ar( 0, sig * amp ); }) .setSpec( \smooth, [0,1, 0.9.calcCurve].asSpec ) .setSpec( \smear, [0,1, 0.05.calcCurve].asSpec ) .setSpec( \fft ...

  8. SpecFlatness Doc

    ... atness.kr(chain); flatdb = 10 * flat.log; // Convert to decibels flatdbsquish = LinLin.kr(flatdb, -45, -1.6, 0, 1).max(-10); // Rescale db roughly to 0...1. flat.poll(10, "flatness: "); flatdb.poll(10, "flatness (db): "); [flat, flatdbsquis ...

  9. pulse_counter Quark

    ... ; output = Select.kr( mode, [ index, index.fold(0, max), ]); UMapOut.kr( output.linlin(0,max,*range ) ); }) .mappedArgs_([ \range ]) .setSpec( \trigger, TriggerSpec() ) .setSpec( \reset, TriggerSpec() ) .setSpec( \step, IntegerSpec(1) ) .se ...

  10. pulse_counter Quark

    ... ; output = Select.kr( mode, [ index, index.fold(0, max), ]); UMapOut.kr( output.linlin(0,max,*range ) ); }) .mappedArgs_([ \range ]) .setSpec( \trigger, TriggerSpec() ) .setSpec( \reset, TriggerSpec() ) .setSpec( \step, IntegerSpec(1) ) .se ...

prev 51 52 53 54 55 56 57 58 59 60 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow