-
... ); if(level>q[\pattern][\hhT], { ( instrument: \hh, amp: level, release: level.linlin(0, 1.0, 0.0, 0.04), ffreq: 1000 + (exprand(1000, 6000) * level), ).play; }); (0.125/2).wait; }); }).clock_(t).play; Tdef(\kick, { inf.do({|i| var level = ...
-
... hannelHeight*0.5+1; if(x==0, { Pen.moveTo(Point(0, y)); }, { Pen.lineTo(Point(x.linlin(0, length, 0, img.width), y)); }); if(val.abs>=threshNearRailed, { c.nearRailed= true; if(val.abs>=threshRailed, { c.railed= true; }); }); c.uVrms.overwr ...
-
... scaleEnv = {arg thisEnv, minVal, maxVal; thisEnv.levels = thisEnv.levels.linlin(0, 1, minVal, maxVal); thisEnv.duration_(timeScale); thisEnv.duration_(timeScale); // "scaling done!".postln; }; // Ugly... adjustEnv = ...
-
... trig <= 0) { \rest } { e.str.asInteger } }), \pan, Pfunc({ |e| e.num !? { e.num.linlin(1,4,-1,1) } ?? { 0 } }), \legato, 0.2 ).play; 4.wait; }; x.stop; }).play ``` Uses the default synth (with shorter notes so you can hear the pattern).
-
... , scaled, curvedResult; if (curve.isNumber and: { abs(curve) < 0.125 }) { ^this.linlin(inMin, inMax, outMin, outMax, clip) }; grow = exp(curve); a = outMax - outMin / (1.0 - grow); b = outMin + a; scaled = (this.prune(inMin, inMax, clip) - ...
-
... ).postln; (instrument: \moog, midinote: note, amp: keyboardVolume, fattack: vel.linlin(0, 127, 0.3, 0.01)).play; } playExplosion { var soundVolume = ChordtrisPreferences.getPreferences.at(\soundVolume).value; (instrument: \explosion, amp: s ...
-
... (if the button is big enough to display all this information - mapping can be \linlin , \linexp , \explin or \expexp ). Returns: an Event . calibBut An Event containing two Button s that link to the OSC-tabs within the regarding CVWidgetEd ...
-
... // copied methods \nextPowerOf, \previousPowerOf, ]; classvar mappingOps = #[ \linlin, \linexp, \explin, \expexp, \lincurve, \curvelin ]; specialTrigonometricTestRanges { ^( \asin: [-1.0, 1.0], \acos: [-1.0, 1.0], \atan: [-8.0, 8.0], \sinh ...
-
... ollersAndModels } ); // "mapping: %\n".postf(mapping); if(mapping.asSymbol !== \linlin and:{ mapping.asSymbol !== \linexp and:{ mapping.asSymbol !== \explin and:{ mapping.asSymbol !== \expexp } } }, { Error("A valid mapping can either be \\ ...
-
... log or a number : If \lin is specified, the mapping will be performed using the linlin function. If \exp or \log is specified, the mapping will be performed using the linexp function. It is still possible to set min equals to 0 when using t ...