-
... dbamp ) ) }.play( RootNode(server) ); }, { { Out.ar( NumOutputBuses.ir + input, SinOsc.ar( type, 0, dB.dbamp ) ) }.play( RootNode(server) ); } ); } } endTest { |input| if( input.isNil ) { testSynths.do(_.free); testSynths = nil; } { if( tes ...
-
... switch = (minDetect * maxDetect * aliasingDetect).lag(0.2); SinOsc.ar(nthOvertone, phases[i].lag(0.2)) * switch * numOvertones.reciprocal.sqrt.lag(0.2) }; signalArray = signalArray * amplitudes.lag(0.2) ...
-
... } ).loadSynthDef; Udef( \vibrato, { |rate = 1, amount = #[0.0,1.0]| UOut.ar( 0, SinOsc.kr( rate ).range(*amount) * UIn.ar( 0 ) ) } ).loadSynthDef; ) // \sine and \output are already in the Udef bank x = UChain( \sine, [ \sine, [ \freq, 550, ...
-
... req * EnvGen.ar( Env([topRatio, topRatio, 1], [0.002, dcy], -4), trig ), sig = (SinOsc.ar(freq) * preamp.dbamp).tanh * amp, eg = EnvGen.ar(Env([0, 1, 0.6, 0.4, 0], [atk, dcy1, dcy2, rel], -4), trig, doneAction: 2); Out.ar(out, sig * eg); }) ...
-
... s with tempo changes ( var sf, tempoclock, bbcutclock; SynthDef(\beep,{Out.ar(0,SinOsc.ar(440,0,0.1)*Line.kr(1,0,0.1,doneAction:2))}).load(s); tempoclock= TempoClock(2.3); bbcutclock= ExternalClock(tempoclock); Routine.run({ sf= BBCutBuffer ...
-
... EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0.5pi, env)) }).add; a = Pbind(\instrument, \help_sinegrain, \note, Pseq([0, 7, 2, 9, 11, 10, 9, 8], inf), \dur, 1); a.play(quant: (quant: 1, ph ...
-
... XLine.kr( start: sinfreq, end: sinfreq * glissf, dur: rel ); snd = SinOsc.ar( freq: ramp, phase: 0, mul: env, add: 0); snd = Pan2.ar(snd, pan); Out.ar(out, snd); }).add; SynthDef("lowbuild", {arg out = 0, am ...
-
... valuate an audio function like this: // assuming the server is already booted { SinOsc .ar}.play ; In this case many server operations are hidden. To understand the passages inolved in the evalutation of this code see Functions and Other Fu ...
-
... nd to use ( SynthDef(\toc, { Out.ar(0, XLine.ar(1, 0.01, 0.02, doneAction: 2) * SinOsc.ar([600, 1300, 4500], 0, [0.3, 0.2, 0.1]).postln); }).add; ) (instrument: \toc).play; // get more info posted e.verbosity = 2; e.startRec; // run this li ...
-
... r(Env([1, decay1L, 0], [decay1, decay2], -4), doneAction: Done.freeSelf), sig = SinOsc.ar(fcurve, 0.5pi, preamp).distort * env * amp; Out.ar(out, sig ! 2) }).add; SynthDef(\kraftySnr, { |amp = 1, freq = 2000, rq = 3, decay = 0.3, pan, out| ...