-
... { |i| i/(n-1) }!n ); step = ((ControlDur.ir + SampleDur.ir) * speed) * reverse.linlin(0,1,1,-1); range = range + [0,1]; resetPos = (range[0] - step) + ((\u_startPos.ir(0.0) * ControlRate.ir) * step).wrap( 0, range[1] - range[0] ); phase = ...
-
... // uncomment for an extreme example: //\dur, Pfunc{ ~bus2.getSynchronous.linlin(1,3,5,1) * 0.035 }, \legato, 0.3, \release, 2, \root, -30, \pan, Pfunc({0.5.rand2}), \rez, Pfunc({0.7.rand +0.3}), \amp, 0.2).play; ) // ...
-
... nd_(Color(0,0,0,0) ) .strokeColor_(colors[i]) .drawLines_(drawLines) .value_((v.linlin( min, max, 0.0, 1.0 );)) }; labels.do { | t, i | GUI.textView.new(win, Rect(4, 25 * i, 80, 20)) .string_(t.asString) .stringColor_(colors[i]) .background ...
-
... = Fb1_ODE.ar(\MSD, [f, mass, spring, dampen], leakDC: false ); SinOsc.ar(sig[0].linlin(0, 0.005, [100, 101], 700), 0, 0.1) }.play ) x.release // for audible sound production take a time multiplier and a scaling factor // and get a decaying ...
-
... 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], freq ...
-
... height; points = value.collect({ |item, i| pointStart + ((i * pointWidth)@(item.linlin(minVal, maxVal, viewHeight, 0))) }); if( lineWidth > 0 ) { Pen.width = lineWidth; lineColor.set; Pen.moveTo( points[0] ); points[1..].do({ |point| Pen.li ...
-
... ub.width, 6)); horizontalScale.do{|freq, i| var str= freq.asString; var x= freq.linlin(0, maxFreq, 0, ub.width-1); Pen.stringAtPoint(str, Point(x-(str.bounds(f2).width/2), 12), f2); Pen.line(Point(x, 6), Point(x, 10)); Pen.line(Point(x, 0), ...
-
... und).abs.max(0.001) * lastPoint.asArray.collect({ |item| (item > 0).binaryValue.linlin(0,1,-1,1) }).asPoint, newPoint.round(round).abs.max(0.001) * newPoint.asArray.collect({ |item| (item > 0).binaryValue.linlin(0,1,-1,1) }).asPoint ]; // p ...
-
... false, false]; manual_pos = #[0,0,0]; gesture_pos = #[0,0,0]; stereo_width = 45.linlin(-360,360,0,1); live_pos_bus = Bus.control(numChannels: 3); { vst.mapn(6, live_pos_bus.index, 3); }.defer(0.5); onset_bus = Bus.control; manual_pos_bus = ...
-
... sc.kr(1/size.squared).exprange(1/size,size)).range(0,size) ), i.mod(size).linlin(0,4,-1,1), amp/(size.squared * 2) ) }).play }); ~task = Routine( { var t = 0; var sz = 0; loop { t = t + 45; sz = sz + ((t/250).sin.abs * 5); ...