-
... st)); OffsetOut.ar(out, Pan2.ar(sig, pan, amp)); }).store(); ); ( SynthDef(\SCM_Saw_Perc, { |freq=50, cutoff=5000, decay=1, rise=0.005, combDecay=1, curve=2, amp=0.1, out=0, pan=0| var env = EnvGen.kr(Env.perc(rise, decay, curve: curve)); v ...
-
// a model of the blippoo box by rob hordijk, // with a few liberties taken: // saws can be waveshaped, // sound is stereo, (shift shifts cycles between left and right) ( Ndef(\bleepo).ar(q.numChans); Ndef(\bleepo).addSpec(\rateB, [0.01, 50 ...
-
... 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 ...
-
... d = SynthDef(\mdDemo, { |out, freq, cutoff, volume, gate = 1| var sig = LPF.ar(Saw.ar(freq, volume), cutoff), env = EnvGen.kr(Env.adsr, gate, doneAction: Done.freeSelf); Out.ar(out, (sig * env) ! 2) }).add; SynthDescLib.global[\mdDemo].mak ...
-
... : Ndef( \testSynth, { |select=0| Select.ar( select, [ SinOsc.ar( 440, 0, 0.1 ), Saw.ar( 440, 0.1 ), Pulse.ar( 440, 0.5, 0.1 ), WhiteNoise.ar( 0.1 ), PinkNoise.ar(0.1) ] ) } ); Ndef( \testSynth ).play; ~buttonMultiState = 0; k.elementAt( \pa ...
-
... lel voices to create, detuned against each other) or even the name of a UGen (LFSaw, Pulse) to use for the oscillator. There are methods detailed below for creating SynthDefs from Instr. Instr also support partial application (supplying som ...
-
... , Pan2.ar(out)); }).send(s); SynthDef("blop", {|i_out = 0, freq| var out; out = Saw.ar(Line.kr(freq, 10, 0.3), mul:0.6); out = out * EnvGen.ar(Env.perc(0.01,0.1), doneAction:2); Out.ar(i_out, Pan2.ar(out)); }).send(s); ) // Use string patte ...
-
... ontrol(s,1); synth = { arg which, frq, mul; var in, src, rq; in = Saw.ar(200,0.3!2); srcs = [ Decay.ar( Impulse.ar(LFGauss.kr(5, 0.5).range(2, 7)), 0.1, in*MouseButton.kr(0, 1, 0.001) ), WhiteNois ...
-
... [atk,sus,rel],[curve1,0,curve2]), gate, levelScale:amp, doneAction:2); sig = Saw.ar( freq + LFNoise1.kr({LFNoise1.kr(0.5).range(0.15,0.4)}!8).range(detune.neg,detune)); sig = BPF.ar( sig, LFNoise1.kr({LFNoise1.kr(0.13) ...
-
... 5,1.0.rand ] }), 3.0,false ); b.gui(nil,1200@300); ) ( // the SplineGen loops { Saw.ar(SplineGen(b,loop:true).kr.linexp(0.0,1.0,40,500).clip(40,500)).dup * 0.4 }.play ) ⧉ ✔ helpfile source: /tmp/scquark_hs/splines/HelpSource/Classes/SplineG ...