Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... k; kmeans.update(world.objects.collect{|o| o.loc}); world.objects.do{|o, i| var index= kmeans.classifications[i]; var cent= kmeans.centroids[index]; Pen.strokeColor= colors[index]; Pen.line(o.loc.asPoint, cent.asPoint); Pen.stroke; Pen.stro ...

  2. OFX_ChainPreset Quark

    ... moveAll(exceptedSlots); ^slotsToStore } settingNames { ^settings.names } settingIndex { |setName| ^settings.indexOf(setName) } getCurr { var activeSlotsToStore = this.slotsToStore.sect(chain.activeSlotNames.copy); ^activeSlotsToStore.collec ...

  3. PbindFx Quark

    ... ... fxData| ^super.new(pbindData, *fxData) } } // receiver supposed to be clutchIndex + Integer { miSC_getClutch { |index| ^(index == this).if { true }{ false } } } // receiver supposed to be clutchIndices + SequenceableCollection { miSC_ge ...

  4. SOSkick Quark

    ... ode.org/1-5aD */ SynthDef(\SOSkick, { arg out = 0, freq = 50, mod_freq = 5, mod_index = 5, sustain = 0.4, amp = 0.8, beater_noise_level = 0.025; var pitch_contour, drum_osc, drum_lpf, drum_env; var beater_source, beater_hpf, beater_lpf, lpf ...

  5. extStatistics Quark

    ... n) }; ^this - mean / stdDev } // typically assumes this is sorted! atPercent { |index=0.5, interpol=true| if (interpol) { ^this.blendAt(index * (this.size - 1)) } { ^this.at( index * (this.size - 1).round.asInteger) } } /* naive method perc ...

  6. StenoStack Quark

    StenoStack { var busIndices, <controls; var argStack; var dryReadIndex = 0, readIndex = 0, writeIndex = 0, through = 0, <argumentIndex; var <replaceAll = false; var nestingDepth = 0; *new { |busIndices| ^super.newCopyArgs(busIndices, (token ...

  7. FuzzyDictionary Quark

    ... ctionary with the items passed into the func. arguments to the func: elem, key, index, listindex // example a = FuzzyDictionary .new; // put the letters from a to j into the dictionary under their index "abcdefghij" .do { |c, i| a.put(i, c) ...

  8. Gen Quark

    ... ss.new(b, current+b) } storeArgs { ^[current, b] } } Gcyc : Gen { var <>list, <>index, <>step; *new { arg list, index=0, step=1; ^super.newCopyArgs(list @@ index, list, index, step) } next { ^this.class.new(list, index+step, step) } storeAr ...

  9. satieNRT Quark

    ... ig.ambiBus[0]); satie.replaceAmbiPostProcessor([\Identity], order: order, outputIndex: satie.config.outBusIndex); cond.hang; // stop 10 sec timeout timeout.stop; // in order to use Satie's generated SynthDefs in NRT, we need to store them s ...

  10. StereoNodeProxy Quark

    ... = \audio }) { numChannels = 2; }; ^super.defineBus(rate, numChannels) } put { | index, obj, channelOffset = 0, extraArgs, now = true | var container, bundle, oldBus = bus; if(obj.isNil) { this.removeAt(index); ^this }; if(index.isSequenceab ...

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow