-
... n (w, Rect (90,20,200,30)) .states_([ [ "sine" , Color .black, Color .rand], [ "saw" , Color .black, Color .rand], [ "noise" , Color .black, Color .rand], [ "pulse" , Color .black, Color .rand] ]) .action_({ arg butt; butt.value.postln; }); ...
-
... 1| CombL .ar(a_in, 0.5, dt, 15 * dt) }; ~f3 = { |a_in=#[0,0], freq=30| a_in * LFSaw .ar(freq.neg).max(0) }; // some sources ~x1 = { LFPulse .kr( SinOsc .kr(0.2).exprange(2, 200)) * PinkNoise .ar(0.5.dup) }; ~x2 = { Dust .ar( SinOsc .kr(0.2, ...
-
... SynthDef ( \mdDemo , { |out, freq, cutoff, volume, gate = 1| var sig = LPF .ar( Saw .ar(freq, volume), cutoff), env = EnvGen .kr( Env .adsr, gate, doneAction: 2); Out .ar(out, (sig * env) ! 2) }).add; SynthDescLib .global[ \mdDemo ].makeWin ...
-
... , env; env = EnvGen .kr( Env .perc(0.01, sustain), doneAction:2); audio = Mix ( Saw .ar(freq)); audio = Pan2 .ar(audio * env, pan, amp); OffsetOut .ar(out, audio) }).add; ( instrument: \multi, freq: [ [500, 501, 700] ], sustain: 2).play ) ( ...
-
... ,0.1); //should be 16 sone //in= SinOsc.ar(1000,0,1); //should be 64 sone //in= Saw.ar * SinOsc.ar(4); //in=WhiteNoise.ar; //in= Silent.ar; //should be small, around 2 **((0-40)/10) = 2 ** (-4) = 0.0625 //in=DC.ar(1); //in=SinOsc.ar(22050,p ...
-
... array, focus) SelectXFocus.kr(which, array, focus) // examples ( { var a; a = [ Saw .ar( LFSaw .kr(3 * [1, 1.01], 0, 100, 230)), SinOsc .ar, Pulse .ar( LFPulse .kr(3 * [1, 1.02], 0, 0.4, 100, 230)), SinOsc .ar( SinOsc .kr(4 * [1, 1.03], 0, ...
-
... let's look at a synthdef that doesn't work. The intent is to generate a detuned sawtooth wave and run it through a set of parallel resonant filters whose cut-off frequencies are modulating randomly. We run the synth and generate the trace ( ...
-
... y; // multiple usage of the same name: a = { SinOsc .ar( \freq .kr(440, 3.5)) + Saw .ar( \freq .kr(440, 0.05) * 0.5) * 0.1 }.play; a.set( \freq , 1220) a.set( \freq , 120) Comparison with direct use of Controls: In the situation when functi ...
-
... ( SynthDef ( \help_SPE3_Allpass6 , { arg freq; var out, env; out = RLPF .ar( LFSaw .ar( freq, mul: EnvGen .kr( Env .perc, levelScale: 0.3, doneAction: 2 ) ), LFNoise1 .kr(1, 36, 110).midicps, 0.1 ); 6.do({ out = AllpassN .ar(out, 0.05, [0. ...
-
... Window .new.front; v = ListView (w, Rect (10,10,120,70)) .items_([ "SinOsc" , "Saw" , "LFSaw" , "WhiteNoise" , "PinkNoise" , "BrownNoise" , "Osc" ]) .background_( Color .clear) .hiliteColor_( Color .green(alpha:0.6)) .action_({ arg sbs; [s ...