Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... TimeMin], outMax: settings[\envTimeMax]); } convertSustainLevel {|level| ^level.linlin( inMin: 0, inMax: 10, outMin: 0, outMax: 1) } convertEnvelopeLevel {|level| ^level.linlin(-5, 5, -1, 1); } convertSignalLevel {|level| ^level.linlin( inM ...

  2. Waveshaping Synthesis GUI Demo 2 by bruno (Bruno Ruviaro) Code

    ... mplitude change in EZNumber box { 100.do({arg i; {o.valueAction = i.linlin(0, 99, 1, 0).round(0.01)}.defer; (shortNoteDur/100).wait; }) }.fork; // button.value.postln; }); Button.new(i, 132@50) .states_([ ...

  3. Morph Doc

    ... x.linexp(0, 1, lFreq, lFreq * (2**(numOctaves-1)) ); var mul = VarLag.kr(force.linlin(0, 2, 0, 2), 0.1); var fb = y.linlin(0, 1, 0, 2); fSpread = y * 0.1 * [1, -0.5, 0.5, -1]; // fSpread = 0; amp = Env.adsr(0.01, 0.3, 0.8, 2, 1).kr(2, gate ...

  4. 115 final project by mason-mccormack (Mason McCormack) Code

    ... s: 1, bufnum: buffer, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); snd = snd * env; snd = Pan2.ar(snd, panning); Out.ar(0, snd); }).add; // Same as above, but adding ...

  5. KMeans Quark

    ... .0.rand}.dup.integrate}.dup(d).flop; 1000.do{ k.add(d.collect{|whichd| 1.0.rand.linlin(0,1,range[0][whichd], range[1][whichd])}) }; k.reset.update; c = k.centroids; c.do{|acent| rescaled = (acent - range[0]) / (range[1] - range[0]); this.as ...

  6. luce : standalone synth and custom slider GUI demo by simon (Dindoléon) Code

    ... 5, m; ([256, 0].includes(m)).if{ // restrict to no modifier value[0] = (x).linlin(0,slider.bounds.width,0,1); // Linear mapping between the slider size and 0 -> 1 value[1] = (y).linlin(0,slider.bounds.height,0,1); slider.doAction ...

  7. SpacePan - A Spatial Audio Environment by audioholic (audioholic) Code

    ... otaSpeed.value.round(0.01).asString; gui.srcRotaDir .value_(src[\rotadir].linlin(-1, 1, 0, 1)) .action_({arg view; if(src[\grpid] > 0){ sources.pairsDo{arg key, sc, i; if(sc[\grpid] == src[\grpid]){ sc[\rotadir] = ...

  8. compose_complex_view Doc

    ... der = Slider() .orientation_(\horizontal) .maxHeight_(64) .value_( valueDefault.linlin(valueMin, valueMax, 0, 1) ); var textField = TextField() .string_(valueDefault.asString) .align_(\center); // The centralizing function: var updateValue ...

  9. WFSPointGroup Quark

    ... isWFSPointGroup { ^false } asWFSPointGroup { ^WFSPointGroup( { |i| Polar( 8, i.linlin(0,15,0,2pi) ).asPoint } ! 15 ); } } + WFSPath2 { asWFSPointGroup { ^WFSPointGroup( this.positions.collect(_.asPoint) ); } } + Collection { asWFSPointGrou ...

  10. DrawIcon Quark

    ... tBy(10,10), a, m ) }; b = SmoothSlider ( w, 80@20) .action_({ |sl| a = sl.value.linlin(0,1,0,2pi); w.refresh; }); c = RoundButton ( w, 80@20 ) .states_([[ "fill" ], [ "stroke" ]]) .action_({ |bt| m = [ \fill , \stroke ][ bt.value]; w.refres ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow