-
... TimeMin], outMax: settings[\envTimeMax]); } convertSustainLevel {|level| ^level.linlin( inMin: 0, inMax: 10, outMin: 0, outMax: 1) } convertEnvelopeLevel {|level| ^level.linlin(-5, 5, -1, 1); } convertSignalLevel {|level| ^level.linlin( inM ...
-
... mplitude change in EZNumber box { 100.do({arg i; {o.valueAction = i.linlin(0, 99, 1, 0).round(0.01)}.defer; (shortNoteDur/100).wait; }) }.fork; // button.value.postln; }); Button.new(i, 132@50) .states_([ ...
-
... x.linexp(0, 1, lFreq, lFreq * (2**(numOctaves-1)) ); var mul = VarLag.kr(force.linlin(0, 2, 0, 2), 0.1); var fb = y.linlin(0, 1, 0, 2); fSpread = y * 0.1 * [1, -0.5, 0.5, -1]; // fSpread = 0; amp = Env.adsr(0.01, 0.3, 0.8, 2, 1).kr(2, gate ...
-
... s: 1, bufnum: buffer, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); snd = snd * env; snd = Pan2.ar(snd, panning); Out.ar(0, snd); }).add; // Same as above, but adding ...
-
... .0.rand}.dup.integrate}.dup(d).flop; 1000.do{ k.add(d.collect{|whichd| 1.0.rand.linlin(0,1,range[0][whichd], range[1][whichd])}) }; k.reset.update; c = k.centroids; c.do{|acent| rescaled = (acent - range[0]) / (range[1] - range[0]); this.as ...
-
... 5, m; ([256, 0].includes(m)).if{ // restrict to no modifier value[0] = (x).linlin(0,slider.bounds.width,0,1); // Linear mapping between the slider size and 0 -> 1 value[1] = (y).linlin(0,slider.bounds.height,0,1); slider.doAction ...
-
... otaSpeed.value.round(0.01).asString; gui.srcRotaDir .value_(src[\rotadir].linlin(-1, 1, 0, 1)) .action_({arg view; if(src[\grpid] > 0){ sources.pairsDo{arg key, sc, i; if(sc[\grpid] == src[\grpid]){ sc[\rotadir] = ...
-
... der = Slider() .orientation_(\horizontal) .maxHeight_(64) .value_( valueDefault.linlin(valueMin, valueMax, 0, 1) ); var textField = TextField() .string_(valueDefault.asString) .align_(\center); // The centralizing function: var updateValue ...
-
... isWFSPointGroup { ^false } asWFSPointGroup { ^WFSPointGroup( { |i| Polar( 8, i.linlin(0,15,0,2pi) ).asPoint } ! 15 ); } } + WFSPath2 { asWFSPointGroup { ^WFSPointGroup( this.positions.collect(_.asPoint) ); } } + Collection { asWFSPointGrou ...
-
... tBy(10,10), a, m ) }; b = SmoothSlider ( w, 80@20) .action_({ |sl| a = sl.value.linlin(0,1,0,2pi); w.refresh; }); c = RoundButton ( w, 80@20 ) .states_([[ "fill" ], [ "stroke" ]]) .action_({ |bt| m = [ \fill , \stroke ][ bt.value]; w.refres ...