-
... 0.3, Amplitude.kr(SoundIn.ar)) ) }).play; ) ( // use input amplitude to control SinOsc frequency - use headphones to prevent feedback. z = SynthDef("help-AmplitudeMod",{ arg out=0, attack=0.01, release=0.01; Out.ar(out, SinOsc.ar( Amplitude ...
-
... nstance Methods Inherited instance methods Examples { BRF.ar(Saw.ar(200, 0.1), FSinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3800, 4000), 0.3) }.play; { BRF.ar(Saw.ar(200, 0.5), MouseX.kr(100, 10000, 1), 0.3) }.play; // BRF on control signals: ( { ...
-
... event pattern of type \c_set a = NodeProxy(s); b = NodeProxy(s).play; b[0] = { SinOsc.ar(a.kr(4)).sum * 0.2 }; ( a[0] = \setbus -> Pbind( \dur, Prand([1, 0.5], inf), \value, Pfunc { var z = rrand(300, 4000); [300, 400, z, z + 30.rand2] } ) ...
-
... 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, [0, pi]).exprange(2, 2000)) }; // the output ~out.play; ~out = { |a_i ...
-
... nd([0, 0, 0, 1], inf)); freq = Duty.kr(1/MouseX.kr(1, 40, 1), 0, a) * 30 + 340; SinOsc.ar(freq) * 0.1 }.play; ) // reset when mouse button is pressed ( { var a, freq; a = Dreset(Dseries(0, 2, inf), MouseButton.kr); freq = Duty.kr(1/MouseX.k ...
-
... b = wavs.collect{ |wav| Buffer.loadCollection(s, wav) }; s.sync; x = { var in = SinOsc.ar(100, 0, SinOsc.kr(0.1, 0, 0.5, 0.5)); Shaper.ar(b, in) ++ LeakDC.ar(Shaper.ar(b[1], in)) }.scope; }) ) x.free; b.do(_.free); b = nil; ⧉ ✔ Waveshaping ...
-
... Inherited instance methods Examples // Permute a simple sinusoid: {PermModT.ar(SinOsc.ar(220),280,1600)}.play // Modulate both outfreq and infreq parameters with the mouse: {PermModT.ar(SinOsc.ar(220), MouseX.kr(500, 1200), MouseY.kr(1200, ...
-
... rt the server s.boot; // define a synthesis engine SynthDef("sine", { Out.ar(0, SinOsc.ar(440, 0, 0.2)) }).send(s); // schedule (run) synthesis s.sendMsg("s_new", "sine", n = s.nextNodeID, 0, 1); // stop the synth (delete it) s.sendMsg("/n_ ...
-
... thods Inherited instance methods Examples SynthDef("help-PrintVal",{PrintVal.kr(SinOsc.kr(440,0,0.1), 100)}).play //two at once ( SynthDef("help-PrintVal",{ PrintVal.kr(SinOsc.kr(440,0,0.1), 100, 1); PrintVal.kr(LFNoise1.kr(100,0.1), 10, 2) ...
-
... nstance Methods Inherited instance methods Examples ( { var trig = Dust.kr(10); SinOsc.ar( TBetaRand.kr(300, 3000, 0.1, 0.1, trig) ) * 0.1 }.play; ) ( { var trig, prob1, prob2; trig = Dust.kr(10); prob1 = MouseX.kr(1, 5); prob2 = MouseY.kr( ...