-
... te, doneAction: 2); snd = DC.ar(0) ! 2; 5.do { |i| vibrato = SinOsc.kr(vibratoSpeed + LFNoise1.kr(1).range(-1, 1), mul: vibratoDepth * LFNoise1.kr(1).range(0.5, 1)); temp_freq = DelayC.kr(freq, 0.2, LFNoise1.kr ...
-
... ])*0.1).dup}.play //can get it sound like respiration! {(NTube.ar(WhiteNoise.ar*SinOsc.ar(0.5),`[0.97,1.0,1.0,1.0,0.97],`[0.5,MouseY.kr(-1.0,1.0),0.2],`([0.01,0.02,0.01,0.005]*MouseX.kr(0.01,1.0)))*0.1).dup}.play {(NTube.ar(PinkNoise.ar*Sin ...
-
... oClock.default); }); SynthDef(\GMPercSine, { |amp = 0.25, freq = 440| var snd = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr( Env.perc, doneAction: Done.freeSelf ); Out.ar(0, snd!2); }).add; win.layout_( VLayout() .margins_(0) .add(lBut ...
-
... , s; s = Server.default; s.quit; Ndef.clear; x = nil; Ndef(\x, { x = "rebuilt"; SinOsc.ar([661.1, 877.1, 551.1]) }); this.assert(x == "rebuilt", "when server isn't running, the SynthDef should be built"); this.assert( Ndef(\x).rate == \audi ...
-
... = 2; ~version= 1; ~speed= 2pi*1.001; ~amp= 0.5; v.free; v= {RecordBuf.ar(SinOsc.ar(0, BPF.ar(VarSaw.ar(MouseX.kr(1, 1000, 1)), MouseY.kr(50, 5000, 1), 0.5)), b)}.play ~version= 1; ~trails= 0.01; ~speed= -0.03; ~speed= -0.05; ~tr ...
-
... lor .red(0.2)], "pulse" ], // buttons [ nil , { { Env .sine(0.25, 0.25).kr(2) * SinOsc .ar(440) }.play; }, { { Env .sine(0.25, 0.25).kr(2) * Pulse .ar(440) }.play; } ], // actions Color .blue(0.2), iconName: 'sign_$?' ); ); class vars: moda ...
-
... tialWarp), 229); c[9].setup("Gain", ControlSpec.new(0, 1/5, LinearWarp), 1/9); {SinOsc.ar(In.kr([0, 8]), 0, In.kr([1, 9]))}.play ) // A test instrument. ( SynthDef.new("ping", { arg out = 0, freq = 440, pan = 0, gain = 1; Out.ar(out, Pan2.a ...
-
... ); amps = ((otAmps / ((1..8) ** dampExp)).normalizeSum * amp).lag(otLag); sig = SinOsc.ar(freqs, 0, amps); env = EnvGen.ar(Env.asr(att, 1, rel), gate, doneAction: 2); Out.ar(out, Splay.ar(sig) * env) }).add ) // Note that SynthDef \array_1a ...
-
... _size[0] - (margin*2), window_size[1] - (margin*2))); synth = {arg freq=110; SinOsc.ar(freq!2)}.play; slider.drawFunc = { Pen.width = stroke_size; Pen.strokeColor = Color.white; Pen.fillColor = Color.black; Pen.addRect(Rect( ...
-
... = 0.1, devFreq = 10, amp = 0.1| var freq = XLine .kr(400, 1200, 10); Out .ar(0, SinOsc .ar( SinOsc .ar(devFreq, 0, devFactor * freq, freq), mul: amp).dup(2) * EnvGate .new) }).add; ) // VarGui to play synth of above definition and set synth ...