Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... rrect value (mapping) But what if we want to control other ranges ? We can use .linlin or .linexp to map the sliders value, which is between 0 and 1, to a value between 0.1 and 2. We'll use this to new value to control the duration of the p ...

  2. core-synths Quark

    ... ! 5) * cutoff.linexp(0, 1, 1, 2); vowelAmps = \vowelAmps.ir(0 ! 5) * resonance.linlin(0, 1, 50, 200); vowelRqs = \vowelRqs.ir(0 ! 5) / resonance.linlin(0, 1, 1/10, 1/2); vowelFreqs = vowelFreqs.minNyquist; // limit ceiling voweled = BPF.ar ...

  3. blipecho context by vividsnow (vividsnow) Code

    ... q: Pstutter(Pxrand((2,4..16), inf), Pbrown(7,30,3)), atk_dur: Pkey(\freq_mul).linlin(12,2,0.01,0.4), out: ~bus, amp: Pstutter(Pxrand((2,4..16),inf), Pfunc({[2,3,4].normalizeSum.scramble})) ]).play; )

  4. midi Quark

    ... tness ); scaleValue = { |val, fr, mode = \none| if ( abs(curve) < 0.001 ) { val.linlin( *fr ++ [ -1, 1, mode ] ); } { val.lincurve( *fr ++ [ -1, 1, curve, mode ] ); }; }; switch( clipMode, \clip, { value = scaleValue.value( value, fromRange ...

  5. SoundRepresentation Quark

    ... fault if input is not supplied */ if(input == nil, { in = Impulse.ar(speedValue.linlin(0,10, 5, rrand(50, 200.0))); in = BPF.ar(in, rrand(2000, 18000.0)*rrand(0.3, 2.0), 0.4); }, {in = input.value(speedValue)} ); /* calculate azimuth and ra ...

  6. gui_example_userview_accelerometer Quark

    ... img.setColor(clear, x, y)}; xyz.do{|val, i| Pen.strokeColor= colors[i]; y= val.linlin(-4.096, 4.096, height, 0); Pen.line(lastPosition[i], Point(x, y)); Pen.stroke; lastPosition[i].x= x%(width-1); lastPosition[i].y= y; }; x= x+1%width; }; ...

  7. msc-midi Quark

    ... // scale from 1/4x to 4x but keeping 1 in the centre val = if (val < 64) { val.linlin(0,63,1/4,1) } { val.linlin(64,127,1,4) }; track.gesture_playback_rate = val; }, 1, { // knob: chaos rate track.chaos_rate = val / 127; }, 2, { // S: stop ...

  8. Additive Synthesis GUI Demo 3 by bruno (Bruno Ruviaro) Code

    ... {arg knob; // update array of partials partialArray[count] = knob.value.linlin(0, 1, -0.2, 0.2).round(0.01) + count + 1; // update button display updateButtonDisplay.value(buttonArray[count], count); // if this partial i ...

  9. README Quark

    ... '/1/fader1': OSCMapperFader( altName: \fader1, defaultValue: 0.5, transformer: linlin(_, 0.0, 1.0, 0.5, 10.0), callback: {|v| ["received a value", v].postln;}, lag: 0.5, ), '/1/xy1': OSCMapperXY( altName: \touchPanel ), )); ``` or use a pr ...

  10. Villainous - 115granular by melliott (melliott) Code

    ... s: 2, bufnum: buffer, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); snd = snd * env; snd = BPF.ar(snd, ffreq, rq); snd = Pan2.ar(snd, panning); Out.ar(0, snd); } ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow