Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (883) Code (145) Doc (91) Help (17) Quark (625) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. Timpani sound with FM7 plugin by 0-bv (Roberto Arletti) Code

    ... = EnvGen.kr(envEnv,gate,doneAction:2); lfo = LFTri.kr(lfo_speed); lfo = LinLin.ar(lfo, 0, 1, lfo_amp.neg.midiratio , lfo_amp.midiratio); pitch = note.midicps; ctls = [ [0.5 * 1 * (pitch + ((7-7)/32))* lfo ...

  2. imuUV Quark

    ... collect { |val, i| // offset -1.25 means noseDown is lowest star axis Polar(val.linlin( 0, 1, 40, 240), i -1.25 / -9 * 2pi).asPoint + center; }; // star.postln; Pen.color = Color.yellow; Pen.width = 3; star.wrapExtend(10).doAdjacentPairs { ...

  3. Other_event_and_pattern_shortcuts Doc

    ... inotes 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 ...

  4. Phasor Doc

    ... ulse.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 fr ...

  5. WFSArrayPanDirSpecs Quark

    ... us = (vw.bounds.width / 2) - 2; #points, pos = n.collect({ |i| var value; i = i.linlin(0,n,0,2pi); value = getPoint.( i ); [ Polar( value.abs * radius, i ).asPoint, value.isPositive.binaryValue ] }).flop; Pen.use({ // grid Pen.width = 1; Pe ...

  6. UserView-Subclassing Doc

    ... action ([256, 0].includes(modifiers)).if{ // restrict to no modifier newVal= x.linlin(0,this.bounds.width,0,1); // translates the relative mouse position in pixels to a value between 0 and 1 if (newVal != value) {this.valueAction_(newVal)} ...

  7. MView Quark

    ... n = currVals.minItem; var currmax = currVals.maxItem; this.setUni(nil, currVals.linlin( currmin, currmax, normVal, currmax)); } scaleMax { |normVal| var currVals = this.getUni; var currmin = currVals.minItem; var currmax = currVals.maxItem; ...

  8. SimpleNumber Help

    ... s.plot; ((0..10) / 10).collect { |num| num.quantize(1, 1.0, 0.5) }.postcs.plot; linlin(inMin, inMax, outMin, outMax, clip) map the receiver from an assumed linear input range (inMin..inMax) to a linear output range (outMin..outMax). If the ...

  9. SchrittWechsel Quark

    ... to.doorCloseBufnum, \stepBufnum, stepBuffers[speed].bufnum, \dur, dur * (speed.linlin(0, stepBuffers.size-1, 1, 0.5)), \startChan, lastBlock.out, \finishChan, to.out, \rate, 1 ); // Watch Synth and trigger followup actions synth.register(a ...

  10. Complex Doc

    ... | var z = field[x][y]; z = f.(z); field[x][y] = z; Pen.color = Color.gray(z.rho.linlin(-100, 100, 1, 0)); Pen.addRect( Rect(x * dx, y * dy, dx, dy) ); Pen.fill } } }; fork({ 6.do { w.refresh; 2.wait } }, AppClock) ) ⧉ ✔ helpfile source: /us ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow