Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (3508) Code (266) Doc (1134) Help (293) Quark (1779) Plugin (36) SCDoc ↗ Forum ↗ Google ↗
  1. BusPool Quark

    ... *itemCount { |bus| ^counts.itemCount(bus) } *busses { ^counts.contents.keys.as(Array) } *gui { Sheet({ |f| var sortedBusses; sortedBusses = counts.contents.keys.as(Array).sort({ |a,b| (a.index?0) < (b.index?0) }); sortedBusses.do({ |bus| v ...

  2. BusPool Quark

    ... *itemCount { |bus| ^counts.itemCount(bus) } *busses { ^counts.contents.keys.as(Array) } *gui { Sheet({ |f| var sortedBusses; sortedBusses = counts.contents.keys.as(Array).sort({ |a, b| (a.index?0) < (b.index?0) }); sortedBusses.do({ |bus| ...

  3. extOSCArgs Quark

    // arrayed osc argument support // counterpart to asOSCArgBundle, asOSCArgArray + SequenceableCollection { unfoldOSCArrays { var stack, current, prev; this.do { |item| if(item === $[) { current !? { stack = stack.add(current) }; current = n ...

  4. extCollection-unwrap Quark

    // wslib 2010 // unwrapping a wrapped array // useful for detecting phase slope etc. + SequenceableCollection { /* example (proof of concept): ((..100) * 0.125).wrap2(1).unwrap2(1).plot; */ unwrap2 { |aNumber = 1| ^this.unwrap( aNumber.neg, ...

  5. plusArrayScan Quark

    + Array { scan { |init,f| ^this.inject([init], { |state,x| state.addI( f.(state.last,x) ) }) } //mapAccumL :: (acc -> x -> (acc, y)) -> acc -> [x] -> (acc, [y]) // (0..9).collectAccum(0,{ |state,x| T(state+x,x*state) }) collectAccum { |init ...

  6. MiniIDE Doc

    ... eded views. Class Methods . new Create a new MiniIDE Arguments: tabs Expects an array of classes for the tabs that should be included. These clases should inherit from MiniIDETab. If this value is left blank it defaults to [ MiniIDEScope , ...

  7. SamplerDB Doc

    ... on. Arguments: keynums The MIDI key numbers to play, can be a single number, an array of numbers, or a function that generate the number. Negative key numbers reverses the buffer to play. It's default is a random number between 0-127. syncm ...

  8. Import a midi file easily by sebastienclara (sebastienclara) Code

    Import a midi file on 3 Arrays : notes, durations & dates. // notes, durations, dates <= # n, d, t = ImportMidiFile("~/Desktop/bwv772.mid"); /* Sébastien Clara - Janvier 2016 Import a midi file on 3 Arrays : notes, durations & date ...

  9. Fun with typos by tomasebrennan (tomasebrennan) Code

    ... glitch. The joy of typos in SC :) { Pan2.ar(Klank.ar(`[[1, 2.2, 3.5, 4.9], nil, Array.series(4, 1, -0.2)], PinkNoise.ar(EnvGen.ar(Env.perc(0.001,0.01), Impulse.ar(4))), 0), 0); }.play;

  10. SampleDescript testcode Quark

    ... free; a.numChannels; // This is a mono file a.buffer; // Buffer is stored in an array of each mono channels a.activeBuffer; // See the array structure a.activeBuffer[0][0].plot; // Buffer sections is also stored in an array of each mono cha ...

prev 121 122 123 124 125 126 127 128 129 130 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow