-
... ou run across them. // look at the outputs of Pan2: Pan2.ar(PinkNoise.ar(0.1), FSinOsc.kr(3)).dump; play({ Pan2.ar(PinkNoise.ar(0.1), FSinOsc.kr(1)); }); ⧉ ✔ Multichannel expansion When an Array is given as an input to a unit generator it c ...
-
... m Instr Make a SynthDef: ( // given an Instr Instr(\sin,{ arg freq=440,amp=0.5; SinOsc.ar(freq) * amp }); // make a SynthDef d = Instr(\sin).asSynthDef( (amp:0.2) ) ) ⧉ ✔ Arguments to asSynthDef can be a list or an event with argName:value ...
-
... ace input 6 (including 0!) // via ndef Ndef(\euroLFO, {SoundIn.ar(6)}); ( Ndef(\sinOsc, { // AM on SC synth from EuroRack (LF)O var sig = SinOsc.ar([400, 402]) * Ndef(\euroLFO); sig }).play; ) // stop listening Ndef(\sinOsc).clear; // anoth ...
-
... other editors. Synthesizing sound To run (evaluate) one line of code, such as { SinOsc.ar([400, 401], 0, 0.1) * Saw.ar([11, 33], 1) * EnvGen.kr(Env.sine(10)) }.play ⧉ ✔ first make sure that the localhost server is booted. Then put the curso ...
-
... so when using ProxySynthDef directly: d = ProxySynthDef("test", { arg freq=440; SinOsc.ar(freq) }).send(s); s.sendMsg("/s_new", "test", 1980, 1, 1, \freq, 340); s.sendMsg("/n_set", 1980, \freq, 240); s.sendMsg("/n_set", 1980, \fadeTime, 4); ...
-
... ; g.object_(Ndef(\a)); // put in a nodeproxy Ndef(\a, { |freq = 300, amp = 0.2| SinOsc.ar(freq) * amp ! 2 }).play; Ndef(\a).set(\freq, 200); // add a setting Ndef(\a); g.object_(nil); // put in nothing g.object_(Ndef(\a)); // put in a nodep ...
-
... f = LFSaw.kr(0.4, 0, 24, LFSaw.kr([8,7.23], 0, 3, 80)).midicps; zout = CombN.ar(SinOsc.ar(f, 0, 0.04), 0.2, 0.2, 4); zout * amp }); // the patch retrieves it by name p = Patch(\bubbles,[0.4] ); p.gui ) ⧉ ✔ a direct function that will be use ...
-
... nil; ) ⧉ ✔ In some cases, chains of reassignment are useful: ( { var sig; sig = SinOsc.ar(LFNoise0.kr(10).exprange(1, 1000)); sig = SinOsc.ar(310, sig * 3); sig = SinOsc.ar(230, sig * 0.4); sig * 0.2 }.play ) ⧉ ✔ Multiple Assignment A multi ...
-
... n 0 and 24 // carPartial :: modPartial => car/mod ratio var mod; var car; mod = SinOsc.ar( freq * modPartial, 0, freq * index * LFNoise1.kr(5.reciprocal).abs ); car = SinOsc.ar( (freq * carPartial) + mod, 0, mul ); Out.ar( bus, car ) }).add ...
-
... yN ). Monitor uses the existing set of SystemSynthDefs to do this. { Out.ar(87, SinOsc.ar(MouseX.kr(240, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play; // play three sine tone on channels 87, 88, and 89 x = Monitor.new; // create a new monitor x.pl ...