-
... ; }); } ) }!numVoices) )); }; clock= TempoClock(1, queueSize:8192); //--audio { SynthDef(\sStream, {|outBus= 0, synBus, atk= 0.1, rel= 1, on= 1, vol= 0| var onEnv= EnvGen.kr(Env.asr(atk, 1, rel), on); var syn= In.ar(synBus, 2)*0.2; var lv= ...
-
... y in Hz loBand bandwidth (rq) loGain gain in dB . def Returns the mixer channel SynthDef . . defEq Returns the equalizer SynthDef . . free Free synth, equalizer and inserts. . group The Group in use. . gui Create a RedMixerChannelGUI . Argu ...
-
... }.plot; a.collect{|t| EaseInOutQuad.(t)}.plot; //--similar in sclang and inside synthdefs s.boot c= {SinOsc.ar(EaseInOutExpo.kr(MouseX.kr)*500+500, 0, 0.1)}.play c.free a.collect{|x| EaseInOutExpo.(x)}.plot //--rates are flexibe when used i ...
-
... } ); obj.setDur(dur); obj; }; ) // Create a synth to play ( SynthDef(\blip, {arg freq, time = 1, out = 0; var rel = TRand.kr(0.1,4,1); var sig = SinOsc.ar(freq*[0.9,0.99,1,1.01,1.1], mul:[0.05,0.2,1,0.2,0.05]).mean; ...
-
... eive server notifications for. updateFunction - ( // prep s = Server.local; n = SynthDef("Updater-help", {|out, freq| var sin; sin = SinOsc.ar(freq, 0.5)*EnvGen.kr(Env.triangle(4,1), doneAction:2); Out.ar(out, sin); }).send(s); ) ( //create ...
-
... rameterDict.put( ~space.points[3], \freqmod, 300 ); ); s = Server.local.boot; ( SynthDef( \ParameterSpaceHelp, { |out=0,amp=0.2,freq=100,freqmod=40| Out.ar(out, SinOsc.ar( SinOsc.ar( freqmod, 0, 20, freq ), 0, amp ) ); }).send(s); ) x = Syn ...
-
... imenting as compile time is shorter, but once you have finished the design of a SynthDef it might pay going back to blocksize 32 or 64 for runtime efficiency, especially if many kr UGens are involved. References Trefethen, Lloyd N.; Birkiss ...
-
... ied in *new. Inherited instance methods Examples //////// Basic functionality ( SynthDef(\testEQui, { Out.ar(0, WhiteNoise.ar(0.1).equi); }).add; ) ( x = Synth(\testEQui); e = EQui(target: x); // change the GUI; alt-drag changes q ) p = e.v ...
-
... tForBoot({ var win = Window.new( "", Rect(0, 400, 200, 100) ); var roundButton; SynthDef(\GMhelp, { |out = 0, amp = 0.1, freq = 440| var snd = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr( Env.perc, doneAction: Done.freeSelf ); Out.ar(0 ...
-
... ion.value(evModIndex); evAmp.action.value(evAmp); //////////////// // SynthDefs //////////////// { SynthDef("freq-mod-with-envs", {arg freqRatio; var carrFreq, carrFreqEnv, carrFreqCtl, modFreq, modFreqEnv, modFre ...