Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... sFunc; var specOptions, thisResult; if(thisFunc.notNil, { specOptions= (0..127).linlin(0,127,0,1.0).collect({|item| thisFunc.(thisSpec.map(item.round(0.01))) }); thisResult = specOptions.indexIn(unmapVal).linlin(0,127,0,1); }, { thisResult ...

  2. WFSSpeakerConfView Quark

    ... Conf.n / unitSize).floor.asInteger).collect({ |i| points[0].blend( points[1], i.linlin( -0.5, (arrayConf.n / unitSize) - 0.5, 0, 1 ) ); }); Pen.color = Color.black.alpha_(0.25); Pen.font = Font( Font.defaultSansFace, 9, true ); unitPoints.d ...

  3. Apocalyptic Visions by akash-kumar (Akash Kumar) Code

    ... Synth("SynthesisSynergy", [ \freq, note.midicps, // converts to Hz \amp, vel.linlin(0, 127, 0, 1) // converts vel to amp 0-1 ]); ["note", note, "vel", vel].postln; }); )

  4. Other event and pattern shortcuts Quark

    ... notes get shorter durations ( a = [ m: { rrand(60, 100) }, // midinote d: { ~m .linlin(60, 90, 3, 0.1) } // dur ] ) // suppose EventShortCuts are turned on // make an Event and see its data, then play, try several times x = a.ev x.on // sam ...

  5. Core_01 Quark

    ... eHighV69bb = hi; setSlider = { |view, val| if(view.notNil) { { view.value = val.linlin(0.0, 3.0, 0.0, 1.0).clip(0.0, 1.0) }.defer }; }; setSlider.(~noiseAmountSliderV69bc, amt); setSlider.(~noiseLowSliderV69bc, lo); setSlider.(~noiseMidSlid ...

  6. SuperDirtUGens Quark

    ... t even one channel. Can't pan no channel, sorry.").throw }; span = span * splay.linlin(0, 1, numChannels / n, 1); pan = pan + 1; // for PanAz, the first/last channel is not 0, but 1. channels = signals.collect { |x, i| var panOffset = i / ( ...

  7. mpd18UseCase -- FRP style by lfsaw (LFSaw) Code

    ... i] = [sources[i], freqs].flopWith{ |j, freq| Synth(q.names[j], [\freq, freq.linlin(0.0,1.0,300,2000)]) }; } }; q.stopSynths = { |i| IO{ q.synths[i].do(_.release); q.synths[i] = [] } }; q.setFreq = { |i, freqs| IO{ [q.sy ...

  8. LFGauss Help

    ... (-2.0 * squared(width)))); var gauss = LFGauss .ar(0.1, width, loop: 1); gauss.linlin(min, 1, 0, 1); }.plot(1) ); // range does the same implicitly ( { var width = XLine .kr(0.04, 1.0, 1); LFGauss .ar(0.1, width, loop: 1).range(0, 1); }.pl ...

  9. mugic-spat-con-gui Quark

    ... lider() .action_({|slider| model.tracks[i].gesture_playback_rate = slider.value.linlin(0,1,0.25,4,) }) .mouseDownAction_({|v,x,y,m, buttonNumber| if (buttonNumber >= 1) { model.tracks[i].gesture_playback_rate = 1 }; buttonNumber >= 1 }), St ...

  10. wfsPathSequencer Quark

    ... Time * (1-fadePos)); endFade = startFade + fadeTime; fade = SinOsc.kr( 0, sweep.linlin(startFade, endFade, -0.5pi, 0.5pi, \minmax) ); //fade.poll( label: i.asString ); sig = LinXFade2.kr( sig, path, fade ); }); UMixOut.kr( 0, sig ); }) .cat ...

prev 71 72 73 74 75 76 77 78 79 80 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow