-
... }; // if new value is a big leap, ignore it and use previous // up to the lines above, winner is still a number between 0-127 // below I convert it to appropriate ranges case {winner.isNil} {"rate is now nil".postln} // ...
-
... these notes are directly from Eno's Music for Airports // each phrase is one line, and played through var airports=[ [5,7,4,2,0,12,7,5,7,4,2,0], [5,7,4,2,0,12,4,7,5,0], [-5,2,0,4,7,12,5,2,7,4,0,7,2,5,5,2,4,0], [7,7,2,4,4,4, ...
-
... tsToAdd - event[\dur]; }; beatsToAdd // return value; 0 if exactly the bar line, negative otherwise }; ) ( ~backtracking = { |list, beatInBar = 0, beatsPerBar = 4| var tryPhraseOrder = ~phrases.scramble, remaining, localList ...
-
... ray[count].value.linlin(0, 1, -0.2, 0.2).round(0.01) + count + 1}); // in the line above, "+ 0.5" adjusts for knob center = 0.5 (becomes center = 1); // this deviation value then is multiplied by the partial number // Initialize But ...
-
... ar env, snd, ramp; env = Env.perc(att, rel, amp).kr(doneAction: 2); ramp = XLine.kr( start: sinfreq, end: sinfreq * glissf, dur: rel ); snd = SinOsc.ar(freq: ramp, mul: env); snd = Pan2.ar(snd, pan); Out.ar(out, snd); ...
-
... // Add a little mouse-magic (comment previous line, uncomment the following) //LFNoise2.kr(0.32, MouseY.kr([0.2,0.005],[100,40],\exponential), 0.5 - (0 ...
-
... r = "000000"; Pen.alpha_(index.linlin(0, ~allPoints.size, 1, 0)); Pen.line( Point((prevPoint.x.linlin(-1, 8, 0, 1920)), (prevPoint.y.linlin(-0.8,4,780,0))), Point((pt.x.linlin(-1, 8, 0, 1920)),(pt.y.linlin(-0.8,4,780,0 ...
-
... arrier, modulator, freqdev, env, modfreq; // i = d/m, so d = m*i modindex = Line.kr(modindex, 1, att); modfreq = freq / 2; freqdev = modfreq * modindex; modulator = SinOsc.ar(freq: modfreq, mul: freqdev); carrier = LFTri.ar(freq ...
-
... // .thumbWidth_(30.0) // .thumbHeight_(15.0) .setEnv(carrFreqEnv) .drawLines_(true) .selectionColor_(Color.red) .drawRects_(true) .step_(0.01) .keepHorizontalOrder_(true) .action_({arg b; // ["GOT IT", b.value].postln; ...
-
... 5, phase:0, mul:1, add:0), mul: vol, add: 0) * Line.kr( start: 0.5, end: 0, dur: decay, doneAction: 2), freq: XLine.kr( start: filterstart, end: filterend ...