Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2366) Code (121) Doc (629) Help (191) Quark (1309) Plugin (116) SCDoc ↗ Forum ↗ Google ↗
  1. example sequencing soundfiles by fredrik-olofsson (Fredrik Olofsson) Code

    ... //test2 - looping through samples one after the other ( Routine({ var index= 0; var c= Condition.new; inf.do{ var a= Synth(\sample, [\buf, b[index], \rate, 1]).register; a.onFree{ ("playing index:"+index).postln; ...

  2. APlane Quark

    ... nes.add(aplane); ^aplane; } *aplanes {var resultArr, planeArr; planeArr = super.indexArr; planeArr.do{|item, index| if((item[1][0] == \aplane), { resultArr = resultArr.add(item); }); } ^resultArr; } *indexArr {var arr, result, aplaneArr; ar ...

  3. CCAllocator Quark

    ... eserved = IdentityDictionary.new; reservedTypes.do({ arg type; i = controlTypes.indexOf(type); i.notNil.if({ cc = available.at(i); reserved.put(cc.type, cc) }); }); } get { arg type, name; // get a controller, by type or any kind if type is ...

  4. CCAllocator Quark

    ... eserved = IdentityDictionary.new; reservedTypes.do({ arg type; i = controlTypes.indexOf(type); i.notNil.if({ cc = available.at(i); reserved.put(cc.type, cc) }); }); } get { arg type, name; // get a controller, by type or any kind if type is ...

  5. MultiButtonView by simon (Dindoléon) Code

    ... argin * ( states.size - 1 ) ) / states.size; } ); states.do( { | state, index | var string_rect; var string_color; if( current_state == index, { Pen.fillColor_( state[ 2 ] ) }, { Pen.fillColor_( state[ ...

  6. 14 Doc

    ... す。 ( SynthDef("fm1", { arg bus = 0, freq = 440, carPartial = 1, modPartial = 1, index = 3, mul = 0.05; // インデックスの値は通常は0から24まで // carPartial :: modPartial => car/mod ratio var mod; var car; mod = SinOsc.ar( freq * modPartial, 0, freq * index ...

  7. ArrayedCollection Doc

    ... ctangular at clipAt wrapAt foldAt plot swap put clipPut wrapPut foldPut putEach indexOf includes indexOfGreaterThan removeAt takeAt takeThese add addAll extend fill insert boundedInsert move addFirst pop grow growClear copyRange copySeries ...

  8. Mx Quark

    ... bjects) } channelAt { arg chan; ^if(chan == inf, {master}, {channels[chan]}); } indexOfChannel { arg channel; var i; if(channel === master, { ^inf }); i = channels.indexOf(channel); ^i } extendChannels { arg toSize; // create more channels ...

  9. KMeans Quark

    ... = {{0}.dup(data[0].size)}.dup(k); centroidcounts = {0}.dup(k); data.do{|datum, index| whichcent = assignments[index]; centroidsums[ whichcent] = centroidsums[ whichcent] + datum; centroidcounts[whichcent] = centroidcounts[whichcent] + 1; } ...

  10. LinkedList Doc

    ... urn the first item in the list. . last Return the last item in the list. . at ( index ) Return the item at the given index in the list. This requires a scan of the list and so is O(n). . put ( index , item ) Put the item at the given index ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow