-
... //////////////////////////// Code can be transfered from a test function into a synthdef. In the following example, the code from the function (above) is the second argument to the Out ugen. ( SynthDef("ringMod", { Out.ar( 0, SinOsc.ar([440 ...
-
... . Typically 4 to 8. Must be a nonzero, positive integer. This is fixed when the SynthDef is compiled so cannot be assigned to a SynthDef argument. w The B-format signal. x The B-format signal. y The B-format signal. orientation Should be ze ...
-
... erver apps running on the local machine have two UNIX environment variables: SC_SYNTHDEF_PATH and SC_PLUGIN_PATH . These indicate directories of synthdefs and ugen plugins that will be loaded at startup. These are in addition to the default ...
-
... ct{|c| ~noteToMidi.(c)}; }; ) // STEP 1: a simple synth ( // Init synth SynthDef(\simpSaw1, {|freq, gate=1| var env = EnvGen.ar(Env.adsr(0.01,0.3,0.5,0.1), gate, doneAction:2); var snd = Saw.ar(freq!2); Out.ar(0, env*snd); }) ...
-
... ~buffers.buzz = Buffer.read(s, ~source.silence, 4608000, 14000); //---------SynthDef--------- SynthDef(\bufPlay2, {|out = 0, bufnum, rateScale = 1, amp = 1| var buf = PlayBuf.ar(2, bufnum, BufRateScale.kr(bufnum) * rateScale, doneA ...
-
t=TempoClock.(273/60); ( SynthDef("plucking", {arg amp = 0.1, freq = 440, decay = 5, dampen = 0.1; var env, snd; env = Env.linen(0, decay, 0).kr(doneAction: 2); snd = Pluck.ar( in: LFTri.ar(freq: freq, mul: amp), t ...
-
SynthDef( \tapdelays_3_1, { var src = WhiteNoise.ar; var buf = LocalBuf(SampleRate.ir * 6); var phase = DelTapWr.ar(buf, src); Out.ar(0, 250.collect{|i| var delay = Rand(0.01, 3.0); var tap = DelTapRd.ar(buf, phase, delay, 1, 1.0 ); tap }.m ...
-
SynthDef( \tapdelays_3_4, { var src = WhiteNoise.ar; var buf = LocalBuf(SampleRate.ir * 6); var phase = DelTapWr.ar(buf, src); Out.ar(0, 250.collect{|i| var delay = Rand(0.01, 3.0); var tap = DelTapRd.ar(buf, phase, delay, 4, 1.0 ); tap }.m ...
-
SynthDef( \tapdelays_3_2, { var src = WhiteNoise.ar; var buf = LocalBuf(SampleRate.ir * 6); var phase = DelTapWr.ar(buf, src); Out.ar(0, 250.collect{|i| var delay = Rand(0.01, 3.0); var tap = DelTapRd.ar(buf, phase, delay, 2, 1.0 ); tap }.m ...
-
SynthDef("trig_demo", { |freq = 440, gate = 1, t_trig = 1| var env, sig; env = Decay2.kr(t_trig, 0.01, 0.1); sig = SinOsc.ar(freq, 0, env); sig = sig * Linen.kr(gate, 0.01, 0.1, 0.1, doneAction: 2); Out.ar(0, sig ! 2) }).add;