-
... erver \freq, i.linexp(0, numNotes, 500, 5000).rand, // mapping frequency \az, i.linlin(0,numNotes, -pi*1.5 , pi*1.5).mod(pi), // mapping azimuth \el, i.linlin(0,numNotes, -pi, pi), // mapping elevation \dur, i.linexp(0.0, numNotes, 100, 800 ...
-
... to an amplitude using Latch and some range mapping: e.g., Latch.kr(gate, gate).linlin(0, 1, 0.1, 0.5) . The note data are also provided to an event pattern that supplies arbitrary arguments for each note. See -noteOnArgsPat . Class Methods ...
-
... from MIDI CC callbacks: SamplerQuery.playing[0].do{|voice| voice.set(\amp, ~cc7.linlin(0, 127, 0, 1))}; ⧉ ✔ Voices remove themselves when they end. . releaseGesture Gate off every playing voice tagged with one of the given gesture IDs (0.1 ...
-
... atness.kr(chain); flatdb = 10 * flat.log; // Convert to decibels flatdbsquish = LinLin.kr(flatdb, -45, -1.6, 0, 1).max(-10); // Rescale db roughly to 0...1. flat.poll(10, "flatness: "); flatdb.poll(10, "flatness (db): "); [flat, flatdbsquis ...
-
... 1), \freq, obj.vel.minItem, \phase, obj.loc.distance(cent)*50, \pan, obj.loc[0].linlin(0, width, -1, 1) ); }; }; w.play; CmdPeriod.doOnce({w.close}); } )
-
... lag2 lag3 lagud lag2ud lag3ud varlag slew degreeToKey minNyquist snap softRound linlin linexp explin expexp lincurve curvelin bilin prune checkBadValues if binaryValue isPositive isStrictlyPositive isNegative |==| @ asComplex dumpArgs Other ...
-
... \freq, obj.size, \phase, obj.vel.abs.maxItem*1000, \amp, 0.01, \pan, obj.loc[0].linlin(0, width, -1, 1) ); //--render objects Pen.addOval(Rect.aboutRedObject2D(obj)); }; Pen.fill; }; w.play; CmdPeriod.doOnce({w.close}); } )
-
... = 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 ...
-
... onding synth \freq, newPart.size.linexp(0, 3, 10000, 3000), \amp, newPart.accel.linlin(-5, -10, 0, 0.2), \rel, newPart.size*0.05, \pan, world.gravity[0] ]); }; //--system sys= RedParticleSystem.new; sys.removeAction= makeParticle; //--loop ...
-
... n : Object Map a linear range to an exponential range Source: Line.sc See also: LinLin Description Converts a linear range of values to an exponential range of values. Class Methods LinExp. ar ( in: 0.0 , srclo: 0.0 , srchi: 1.0 , dstlo: 1. ...