-
... sFunc; var specOptions, thisResult; if(thisFunc.notNil, { specOptions= (0..127).linlin(0,127,0,1.0).collect({|item| thisFunc.(thisSpec.map(item.round(0.01))) }); thisResult = specOptions.indexIn(unmapVal).linlin(0,127,0,1); }, { thisResult ...
-
... Conf.n / unitSize).floor.asInteger).collect({ |i| points[0].blend( points[1], i.linlin( -0.5, (arrayConf.n / unitSize) - 0.5, 0, 1 ) ); }); Pen.color = Color.black.alpha_(0.25); Pen.font = Font( Font.defaultSansFace, 9, true ); unitPoints.d ...
-
... Synth("SynthesisSynergy", [ \freq, note.midicps, // converts to Hz \amp, vel.linlin(0, 127, 0, 1) // converts vel to amp 0-1 ]); ["note", note, "vel", vel].postln; }); )
-
... notes 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 ...
-
... eHighV69bb = hi; setSlider = { |view, val| if(view.notNil) { { view.value = val.linlin(0.0, 3.0, 0.0, 1.0).clip(0.0, 1.0) }.defer }; }; setSlider.(~noiseAmountSliderV69bc, amt); setSlider.(~noiseLowSliderV69bc, lo); setSlider.(~noiseMidSlid ...
-
... t even one channel. Can't pan no channel, sorry.").throw }; span = span * splay.linlin(0, 1, numChannels / n, 1); pan = pan + 1; // for PanAz, the first/last channel is not 0, but 1. channels = signals.collect { |x, i| var panOffset = i / ( ...
-
... i] = [sources[i], freqs].flopWith{ |j, freq| Synth(q.names[j], [\freq, freq.linlin(0.0,1.0,300,2000)]) }; } }; q.stopSynths = { |i| IO{ q.synths[i].do(_.release); q.synths[i] = [] } }; q.setFreq = { |i, freqs| IO{ [q.sy ...
-
... (-2.0 * squared(width)))); var gauss = LFGauss .ar(0.1, width, loop: 1); gauss.linlin(min, 1, 0, 1); }.plot(1) ); // range does the same implicitly ( { var width = XLine .kr(0.04, 1.0, 1); LFGauss .ar(0.1, width, loop: 1).range(0, 1); }.pl ...
-
... lider() .action_({|slider| model.tracks[i].gesture_playback_rate = slider.value.linlin(0,1,0.25,4,) }) .mouseDownAction_({|v,x,y,m, buttonNumber| if (buttonNumber >= 1) { model.tracks[i].gesture_playback_rate = 1 }; buttonNumber >= 1 }), St ...
-
... Time * (1-fadePos)); endFade = startFade + fadeTime; fade = SinOsc.kr( 0, sweep.linlin(startFade, endFade, -0.5pi, 0.5pi, \minmax) ); //fade.poll( label: i.asString ); sig = LinXFade2.kr( sig, path, fade ); }); UMixOut.kr( 0, sig ); }) .cat ...