-
... = PopUpMenu(win, Rect(510, 230, 70, 30)); carrMenu.items = ["Sine", "Blip", "Saw"]; carrMenu.background = Color.white; carrMenu.font = Font("Verdana", 13, bold: true); carrMenu.action = {arg menu; synth.set(\which, menu.value)}; ...
-
... pplied is stereo, the synthDef produced will be stereo. ( Patch(\rlpf,[ Patch({ Saw.ar([400,440],0.1) }) // in stereo ]).play ) ⧉ ✔ It is possible to play another Instr inside of your Instr: ( Instr(\sawfilter,{ arg freq,ffreq,rq; Instr.ar( ...
-
... ar; n = Ndef(\linn0, { |freq=250, ffreq=500, amp=0, pan, res=2, bend| var snd = Saw.ar((freq * bend.midiratio).lag(0.1)); var filt = RLPF.ar(snd, ffreq.lag(0.1), 1/res.lag(0.1)); Pan2.ar(filt, pan, amp.lag(0.1)) }).play; n.gui; // bottom ro ...
-
... code. // multiple usage of the same name: a = { SinOsc.ar(\freq.kr(440, 1.0)) + Saw.ar(\freq.kr(440, 1.0) * 0.5) * 0.1 }.play; a.set(\freq, 1220); a.set(\freq, 120); // with different lag values: a = { SinOsc.ar(\freq.kr(440).lag(3.5)) + Sa ...
-
demonstration of simple SynthDefs simulating hihat, snare, kick drum; and a sawtooth synth used both for chords and a bass line in the Pbind demonstration. ( // Basic drum kit SynthDef("hihat", {arg out = 0, amp = 0.5, att = 0.01, rel = ...
-
... 1231 with tweet0357-0360 //--tweet0000 {GlitchRHPF.ar(GbmanN.ar([2300,1150]),LFSaw.ar(Pulse.ar(4,[1,2]/8,1,LFPulse.ar(1/8)/5+1))+2)}.play//#SuperCollider //--tweet0001 r{99.do{|i|x={Pan2.ar(SinOsc.ar(i+1,SinOsc.ar((i%9).div(3)*100+(i%9 ...
-
... LFNoise2.kr(rrand(0.3, 0.8)).exprange(1 - meander, 1 + meander); BLowPass.ar(Saw.ar(f), f, 0.6); }; sig = Splay.ar(sig, 0.8) * env * \mul.kr(0.5, 3); Out.ar(0, sig); }).add; ) ( Routine({ var fakeTHX = Synth(\fakeTHX); ...
-
... ibdepth,vibdepth)+1; freq=Line.kr(freq,freq*ratio,5); freq=freq*vib; sig=Mix.ar(Saw.ar([freq,freq*(1+dtune)],mul:env*amp)); // keep this below nyquist!! ffreq=max(fenv*freq*12,cutoff)+100; sig=LPF.ar(sig,ffreq); Out.ar(out, Pan2.ar(sig,pan) ...
-
... Rel, level: 0.5, curve: curve).kr(doneAction: 2); drumMode = PMOsc.ar( carfreq: Saw.ar(freq: freq * 0.9), modfreq: freq * 0.85, pmindex: timbreIndex, mul: drumModeEnv * 10); drumMode = drumMode + SinOsc.ar(freq: [freq, freq * 0.8], mul: dru ...
-
... = Window.new.front; menu = PopUpMenu(w, Rect(10, 10, 90, 20)) .items_(["Sine", "Saw", "Noise", "Pulse"]); funcs = [ { SinOsc.ar(440, 0, 0.3) }, { Saw.ar(440, 0.3) }, { WhiteNoise.ar(0.3) }, { Pulse.ar(440, 0.2, 0.3) } ]; b = Button(w, Rect( ...