Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... al, etc.), binary (+, -, *, /, **, min, max, etc.) and n-ary (clip, wrap, fold, linlin, linexp, etc.) operators are all valid with patterns. // Random integers, 1-5 Pwhite(1, 5, inf).asStream.nextN(10); // Random integers 1-5, multiplied by ...

  2. SOMTrain Plugin

    ... f.numChannels) }; buf.loadCollection({ buf.numChannels.collect{|index| 1.0.rand.linlin(0, 1, minval[index], maxval[index]) } }.dup(buf.numFrames).flat); } // spinmatrix is an array of buf.numChannels vectors, each of which has "numdims" ent ...

  3. SSampler Quark

    ... {elapsed < env.duration}, { var delayTime = 0.03; var texture = env.at(elapsed).linlin(0, env.levels.maxItem, 1, maxtexture).asInteger; var thisPan = (panenv !? {SSampler.toFlatEnv(panenv).stretch(env.duration).at(elapsed)}) ? pan; var this ...

  4. Final 115 by margo-gentile (Margo Gentile) Code

    ... s: 2, 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; SynthDef("hihat", {arg out ...

  5. LFGauss Doc

    ... / (-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); }.plot ...

  6. BetaBlocker-examplePrograms Plugin

    ... false) b === a.collection(true) x = a.play(10000 + SinOsc.ar(10)); SinOsc.ar(0).linlin(-1, 1, 10000, 19000)) x.free a.plot(duration: 0.15) // impulse a = BBlockerProgram([\ORG, \NOT, \NOT, \NOP, \NOP, \NOP, \NOP, \NOP, \JMP, 1]); x = a.play ...

  7. UBasicEditView Quark

    ... 1| view.scale = level*10; } move { |x,y| x = x ? 0; y = y ? x; view.move_([x,y].linlin(-100,100,0,1)); } moveToCenter { view.move_([0.5,0.5]); } object_ { |newPath, active = true| if( object !== newPath ) { object = newPath; this.refresh; i ...

  8. Spectrum and Spectrogram of a sound file by jcc (jcc) Code

    ... = {arg v, x, y; var binf, nextbinf, sampleNum; sampleNum =winStepArray[x.linlin(0, xs, 0, stepsNum)]; sampleNum= sampleNum + sfSelection[0]; //"Yval: ".post;y.postln; binf =((ys-y)/ys*2048)*sfSampleRate/4096; nextbinf = ( ...

  9. Spectrogram Quark

    ... (0, view.bounds.height); freq = binfreqs[((view.bounds.height)-mouseY).round(1).linlin(0, view.bounds.height, frombin*2, tobin*2).floor(1)].round(0.01); } start { this.startruntask } stop { this.stopruntask } } SpectrogramWindow : Spectrogr ...

  10. bass-vc Quark

    ... Buffer.allocConsecutive(12, s, 2048, 1, completionMessage: { |buf, i| var w = i.linlin(0, b.size-1, 0.16, 0.8); w = [w, 1.0 - w]; buf.sine1Msg(Array.fill(20, { #[0, 1].wchoose(w) }).putFirst(1)) }); out = /*MonoPorta*/Voicer(2, \fmBass, [cb ...

prev 81 82 83 84 85 86 87 88 89 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow