-
... ed class methods Instance Methods Inherited instance methods Examples s.boot; ( SynthDef(\fm_grain_test, {arg gate = 1, amp = 1; Out.ar(0, FMGrain.ar(Impulse.ar(20), 0.2, 440, 200, LFNoise1.kr(1).range(1, 10), EnvGen.kr( Env([0, 1, 0], [1, ...
-
... // Let's read in an internet radio stream and warp it a bit. // First we need a synthdef: s.boot; ( SynthDef("help_mp3_01", { |bufnum = 0| var son, wibble; son = DiskIn.ar(2, bufnum); wibble = LFPar.kr(0.1).range(0.5, 2.0); son = PitchShift ...
-
... ({ |paths| // get a second soundfile; paths.do({ |p| exBuf = Buffer.read(s, p); SynthDef("help-max", { |out = 0, soundBufnum1 = 2, soundBufnum2 = 3| var inA, chainA, inB, chainB, chain ; inA = PlayBuf.ar(1, soundBufnum1, BufRateScale.kr(sou ...
-
... rom the server and assign it to n s.sendMsg("/s_new", "default", n); // use the SynthDef "default" to create a synth with ID n s.sendMsg("/n_free", n); // release the synth n ⧉ ✔ indirectly the language app provides you with convenient OOP ...
-
... th on the server, with specified arguments, and later to free it. The choice of SynthDef is specified using the \instrument key. This event type is what Event.default returns. (degree: [0, 5, 7, 11]).play; Actually plays this event type: (t ...
-
... sto(500).plot(bounds: Rect(10, 410, 520, 380), parent: w); ) // sound example ( SynthDef(\help_sinegrain, { |out = 0, freq = 440, sustain = 0.05| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction: Done.freeSelf); Out.ar(out, ...
-
... p playback, end is used. ~z.end(3); // end in 3 sec ⧉ ✔ in order to rebuild the synthdef on the server, use rebuild . this is of course far less efficient than send , but it can make sense; e.g. the synthdef has random elements. UGens like ...
-
... , a control rate SinOsc modulates the frequency of the audio rate Pulse wave. ( SynthDef("anExample", { Out.ar( 0, Pulse.ar( [220, 221.5] + SinOsc.kr([7, 8], 0, 7), // the control rate conserves CPU cycles 0.35, 0.02 ) ) }).add; ) Synth("an ...
-
... / a sample sig {SinOsc.ar(440 + SinOsc.kr(0.05).range(0, 440), 0, 0.5)}.play; ( SynthDef(\evenbin, {arg fftbuf1, fftbuf2; var in, chain1, chain2, out1, out2; in = SinOsc.ar(440 + SinOsc.kr(0.05).range(0, 440), 0, 0.5); chain1 = FFT(fftbuf1, ...
-
... together represent a sender / receiver pair for sclang side OSC messages. Using SynthDef-like global function definitions, ClientFunc, an sclang application can evaluate code on a remote sclang app. For examples, see LocalClient . Class Met ...