-
... to.doorCloseBufnum, \stepBufnum, stepBuffers[speed].bufnum, \dur, dur * (speed.linlin(0, stepBuffers.size-1, 1, 0.5)), \startChan, lastBlock.out, \finishChan, to.out, \rate, 1 ); // Watch Synth and trigger followup actions synth.register(a ...
-
... w( window, window.view.bounds, (1..4).collect(_.asString ), ({ |i| Color.hsv( i.linlin(0,4,0,1), 0.5, 0.5 ).alpha_(0.5); }!4) ); // enable live scene switching MIDIIn.sysex = { |port, msg| if( msg[..8] == Int8Array[ -16, 66, 64, 0, 1, 4, 0, ...
-
... e pueda "afinar" el comportamiento de cada dial o perilla. convertLevel {|l| ^l.linlin(0, 10, 0, 1); } // Setters de los parámetros /////////////////////////////////////////////////////////////////////// setBand63 {|l| bands[0] = l; this.sy ...
-
... //synthesise the honourable 'Dan Stowell' impulse response ir = ((0..dur*44100).linlin(0,dur*44100,1,0.125).collect({ |f| f = f.squared.squared; f = if( f.coin ) { 0 } { f.squared }; f = if( 0.5.coin ) { 0-f } { f }; }) ) * (-27.dbamp); if( ...
-
... .round.asInteger.clip(1, 127); // amplitude -> MIDI velocity op = (vel / 127.0).linlin(0.0, 1.0, 0.22, 0.97).clip(0.0, 1.0); w = (vel / 127.0).linlin(0.0, 1.0, 0.5, 1.9); file.write("<path data-dorota=\"ats-note\" data-track=\"" ++ trackIdx ...
-
... alue_(1) y.value_(2) z = Var(0.5) z.value_(0.4) r = z.nlin(x,y).do(_.postln) */ linlin { |inMin, inMax, outMin, outMax, clip=\minmax| ^{ |inMin, inMax,outMin,outMax,val| val.linlin(inMin, inMax, outMin, outMax, clip) } .lift.(inMin.asFPSign ...
-
... ointCoordX) ? breakPointCoords.size; env.levels = env.levels.insert(insertInd,y.linlin(0,me.bounds.height,maxRange,minRange)); env.times = (insertInd == 1).if { env.times.insert(0,breakPointTime) } { env.times.insert(insertInd - 1,breakPoin ...
-
... ths[i] = [sources[i], freqs].flopWith{ |j, freq| Synth(q.names[j], [\freq, freq.linlin(0.0,1.0,300,2000)]) }; } }; q.stopSynths = { |i| IO{ q.synths[i].do(_.release); q.synths[i] = [] } }; q.setFreq = { |i, freqs| IO{ [q.synths[i], freqs].f ...
-
... // "move mode vis".postln; star = g.main.movevals.collect { |val, i| Polar(val.linlin( 0, 1, 40, 240), i / 9 * 2pi).asPoint + center; }; // star.postln; Pen.color = Color.yellow; Pen.width = 3; star.wrapExtend(10).doAdjacentPairs { |p1, p2 ...
-
... GridSize; } calculateNearestPoint { |mousePos| nearestPoint = Point( mousePos.x.linlin( this.interactionRect.left, this.interactionRect.right, 0, thisGridSize.x ).round(1), mousePos.y.linlin( this.interactionRect.top, this.interactionRect.b ...