-
... inotes get shorter durations ( a = [ m: { rrand(60, 100) }, // midinote d: { ~m.linlin(60, 90, 3, 0.1) } // dur ] ) // suppose EventShortCuts are turned on // make an Event and see its data, then play, try several times x = a.ev x.on // sam ...
-
... ulse.ar(rate); sr = SampleRate.ir; x = Phasor.ar(trig, rate / sr); SinOsc.ar( [ LinLin.kr(x, 0, 1, 600, 1000), // convert range from 0..1 to 600..1000 1000 // constant second frequency ], 0, 0.2) }.play; ) // two phasors control two sine fr ...
-
... action ([256, 0].includes(modifiers)).if{ // restrict to no modifier newVal= x.linlin(0,this.bounds.width,0,1); // translates the relative mouse position in pixels to a value between 0 and 1 if (newVal != value) {this.valueAction_(newVal)} ...
-
... | var z = field[x][y]; z = f.(z); field[x][y] = z; Pen.color = Color.gray(z.rho.linlin(-100, 100, 1, 0)); Pen.addRect( Rect(x * dx, y * dy, dx, dy) ); Pen.fill } } }; fork({ 6.do { w.refresh; 2.wait } }, AppClock) ) ⧉ ✔ helpfile source: /us ...
-
... erES = k[\sl][page][1].enIn; freqSig = ({ |zoom, slider| if(zoom != 0) { slider.linlin(0.0,1.0,zoom-0.1,zoom+0.1) } { slider } } <%> zoom <@> freqSliderES) .hold(0.5) .enDebug("freq"); freq = freqSig.enKrUni(lag: 0.1, spec: \freq.asSpec, ke ...
-
... r function, create the data at 1/2 buffer size + 1 t = Signal.fill(513, { |i| i.linlin(0.0, 512.0, -1.0, 1.0) }); // linear function t.plot // t.asWavetable will convert it to the official Wavetable format at twice the size b.sendCollection ...
-
... e)) }); //slider 1 k.elAt(\sl, 1).action_({ |elem| z !? _.set(\freq, elem.value.linlin(0.0, 1.0, 50, 2000) ) }); //knob 1 -> number of harmonics k.elAt(\kn, 1).action_({ |elem| z !? _.set(\numHarmonics, elem.value.linexp(0.0, 1.0, 1, 50) ) ...
-
... modulate the rate of the trigger and the startPosition trig = Impulse.ar(speed.linlin(0.0, 10.0, 15.0, 60.0 )); in = PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum), trig, speed.linlin(0, 10.0, 5000, BufFrames.kr(bufnum)), 0)*0.7; Decay2.ar( ...
-
... ar(sig, pan, 0.1)); }).add ) ( Task({ 32.do({ arg i; Synth(\vowblend, [ \pan, i.linlin(0,32, -1, 1 ), \freq, i.linlin(0,32, 30, 66 ).midicps, \b1, 2.rand, \b2, 2.rand, \b3, 2.rand, \b4, 2.rand, \bright, 1.5.rand ]); 0.25.wait });}).play ) ⧉ ...
-
... ving through the space instead of jumping across. // like this: // width = dist.linlin(10,100,num,width); // scale width with distance where num is the number of speakers one is using and width is the max width that is set elsewhere }); 0.1 ...