-
... *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 ...
-
... *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| ...
-
// 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 ...
-
// 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, ...
-
+ 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 ...
-
... 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 , ...
-
... 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 ...
-
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 ...
-
... 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;
-
... 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 ...