-
... H : only clips values higher than the max. WRAP : wraps values around the range FOLD : folds back values into the range The default is FREE . // same as domain: ~param = OSSIA_Parameter(~some_device, 'param', Float, [0, 2017], bounding_mode ...
-
... ([\klankperc,\k2a],{ arg trig=0.0,sfreqScale=1.0,sfreqOffset=0.0,stimeScale=1.0,foldAt=0.1; Klank.ar( `[ FloatArray[ 87.041, 198.607 ], nil, FloatArray[ 0.165394, 0.15595 ] ], K2A.ar(trig), sfreqScale,sfreqOffset,stimeScale ).squared.fold2( ...
-
... ] ~chords = Pbind ( \topNote , Pseries (7, Prand (#[-2, -1, 1, 2], inf ), inf ).fold(2, 14), \bassTriadNotes , Pfunc { ~lastBassEvent[ \degree ] } + #[0, 2, 4], // merge triad into topnote // raises triad notes to the highest octave lower t ...
-
... , 20, 30, 40, 50] + [1, 2, 3]; // normal [10, 20, 30, 40, 50] +.f [1, 2, 3]; // folded [10, 20, 30, 40, 50] +.s [1, 2, 3]; // shorter [10, 20, 30, 40, 50] +.x [1, 2, 3]; // cross [10, 20, 30, 40, 50] +.t [1, 2, 3]; // table // operator dept ...
-
... 0, 0.1] ~chords = Pbind( \topNote, Pseries(7, Prand(#[-2, -1, 1, 2], inf), inf).fold(2, 14), \bassTriadNotes, Pfunc { ~lastBassEvent[\degree] } + #[0, 2, 4], // merge triad into topnote // raises triad notes to the highest octave lower than ...
-
... s the value at index 0 y.wrapAt(4).postln; // this returns the value at index 1 foldAt(index) Same as at , but values for index greater than the size of the ArrayedCollection will be folded back. y = [ 1, 2, 3 ]; y.foldAt(3).postln; // this ...
-
... ct(w.bounds.width - 10 / 7 * 5 + 5, 5, w.bounds.width - 10 / 7, 20)).states_([['fold'],['wrap']]).action_({ |b| b.value.booleanValue.if({ border = -1 }, { border = 1 }); }).mouseOverAction_({ status.string = 'behavior on the grid border' ...
-
... stln }); this.dump; } @ {arg x; ^this.at(x)} at { arg x; /* at, wrapAt, clipAt, foldAt Index the Interpl with a discreet number a = Interpl.new( [0,40,5], [5,72,\welch], [10,80,-5], [20,0] ); a.clipAt(50).postln; a.at( 3 ).postln; */ var st ...
-
... erited class methods Instance methods at put insert boundedInsert clipAt wrapAt foldAt clipPut wrapPut foldPut swap replace ++ add addAll addFirst removeAt collect do reverseDo deepCollect reshape windex size normalize normalizeSum plot rev ...
-
... ct rational results. // floor, ceil, round, roundUp, trunc, frac, mod, wrap and fold are closed // over the rationals, and each returned a Float: // // (7%/2).floor -> 3.0 where 3%/1 is exact // (1%/3).frac -> 0.33333333333333 where 1%/3 is ...