Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2366) Code (121) Doc (629) Help (191) Quark (1309) Plugin (116) SCDoc ↗ Forum ↗ Google ↗
  1. tuningScale Plugin

    ... ootFreq = 440, stepRatios=#[1.5, 2], loFreqBound = 20, hiFreqBound = 20000; var index, octaveUp, octaveDown, divs, scaleFreqs; var current, octave; divs = stepRatios.size; if(stepRatios[divs-1] <= 1.001, { ^nil }); index = -1; octaveUp = st ...

  2. SeqCol-asAddendsOf Plugin

    ... nOf, but with weights aswAddendsOf{ arg summation, weights; var result, values, index; result = this.class.new; values = this.copy; weights = weights.normalizeSum; while({ summation > 0 },{ index = Array.series(values.size, 0, 1).wchoose(we ...

  3. AudioMSG Plugin

    AudioMSG : UGen { *ar { arg in, index=0pi, mul = 1.0, add=0.0; // ^SinOsc.ar( 0, ( in*0.5pi ) + SinOsc.ar( 0, in*2pi, index ), mul, add ) ^this.multiNew('audio', in, index).madd(mul, add); } } //(in*0.5pi) + (in*2pi*index) /* s = Server.int ...

  4. GrainSynths Plugin

    ... ain : JoshGrain { *ar { arg trigger = 0, dur = 1, carfreq = 440, modfreq = 200, index = 1, mul = 1, add = 0; ^this.multiNew('audio', trigger, dur, carfreq, modfreq, index).madd(mul, add); } } FMGrainB : JoshGrain { *ar { arg trigger = 0, du ...

  5. Neuromodules Plugin

    ... { arg file; channels.do({ arg output; output.writeOutputSpec(file); }); } synthIndex_ { arg index; synthIndex = index; channels.do({ arg output; output.synthIndex_(index); }); } } Dneuromodule : MultiOutDemandUGen { *new { |numChannels, th ...

  6. DiodeRingMod Plugin

    ... le).edit /////////////// s.reboot Ndef(\tiickle, { }).play Ndef(\tiickle, { var index = 0; Bend({ |original| [original, original.isNumber, index].postln; if(original.isNumber) { original = NamedControl.kr("bend_"++index, original); index = ...

  7. SOMTrain_2D_example Plugin

    ... , ~dataspacelength, ~dataspacechanwidth); ~data = ~dataspacechanwidth.collect{ |index| ((0..~dataspacelength)*2*pi/~dataspacelength).sin * ((8 * index/~dataspacechanwidth).sin) } //~data.heatMap(title: "training data (array)"); // You need ...

  8. Phrase Plugin

    ... Date.seed, 0 ).calcReturns } // randomly choose element from region choose{ var index, returnItem; index = Array.newClear(regionLength); regionLength.do({ arg i; index[i] = (regionStart + i) % phrase.size; }); pos = index.choose; if(loopRet ...

  9. FFTSubbandPower Plugin

    ... 00, 800, 1600, 3200, 6400, 12800]); Out .ar(0, in * 0.1); powers.collect{ |pow, index| pow.poll(label: "band" +index)}; powers.sum.poll(label: "sum" ); FFTPower .kr(chain).poll(label: "pow" ); }.play(s); ) x.free; In this next example we cr ...

  10. SOMTrain Plugin

    ... = maxval.dup(buf.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 h ...

1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow