-
... el= 0.1| var e= EnvGen.ar(Env.perc(0, rel, amp, -10), doneAction:2); var z= Mix(SinOsc.ar(#[150, 160, 170], 0, e*0.4)); Out.ar(0, Pan2.ar(z, 0)); }).add; }; ) c= TempoClock(114/60); Pdef(\bd).play(c, quant:4) Pdef(\bz).play(c, quant:4) Pdef ...
-
... urce(w, Rect(10, 130, 150, 20)).align_(\center).setBoth_(false); f.object = { { SinOsc.ar(440, 0, 0.4) }.play }; f.string = "My label is independent"; f.dragLabel = " My dragLabel_() says \n I am dragging a sound function "; // receive anyt ...
-
... hDef(\Docs_FreqMonitor, { var freq, snd; freq = LFNoise0.ar(2, 400, 650); snd = SinOsc.ar(freq, 0, 0.2); Out.ar(0, snd); Out.kr(b.index, freq); // output the frequency to a control bus }).play; r = Routine { { // Set the value of the Static ...
-
... eded to trigger the /tr message to be sent SendTrig.kr(Impulse.kr(4), 0, freq); SinOsc.ar(freq, 0, 0.3) ! 2 }.play; [ /tr, 1000, 0, 1340.8098144531 ] [ /tr, 1000, 0, 1153.9201660156 ] [ /tr, 1000, 0, 966.35247802734 ] [ /tr, 1000, 0, 629.31 ...
-
... ; var env; env = EnvGen.kr(Env.perc(0.01, dur, 0.2), doneAction:2); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) // translating characters in melody ( k = Pseq("ab"); c = [ "a" -> "ba", "b" -> "ca" ]; d = Dictionary[ $a -> 0, $b -> 5, $c ...
-
... // the 'NRTsine' SynthDef ( SynthDef ( "NRTsine" ,{ arg freq = 440; Out .ar(0, SinOsc .ar(freq, 0, 0.2) ) }).writeDefFile; ) then on the command line (i.e. in Terminal): ./scsynth -N Cmds.osc _ NRTout.aiff 44100 AIFF int16 The command line ...
-
... survives cmd-period thisProcess .stop; { PanAz .ar(4, ClipNoise .ar, LFSaw .kr( SinOsc .ar(0.03) * 1), 0.1) }.play; // stop and start z.stop; z.start; *new(locations, server, parent, bounds) locations : positions in space of [-1, 1] for x a ...
-
... r.ar(*args) } kr { arg ... args; ^this.asInstr.kr(*args) }*/ } + Class { // eg. SinOsc the class becomes a UGenInstr // any class that responds to .ar or .kr asInstr { ^UGenInstr(this) } } + Function { asInstr { ^Instr("f" ++ this.hash,this ...
-
... r.ar(*args) } kr { arg ... args; ^this.asInstr.kr(*args) }*/ } + Class { // eg. SinOsc the class becomes a UGenInstr // any class that responds to .ar or .kr asInstr { ^UGenInstr(this) } } + Function { asInstr { ^Instr("f" ++ this.hash, thi ...
-
... vGen.ar(Env.perc(attackSecs, releaseTime: durSecs), delTrig ); sig = envelope * SinOsc.ar( (randPitch + (glissRange*pitchGliss)).midicps, mul: 0.2); //Out.ar(0, sig); //enable this for debugging //SendTrig.kr(delTrig, 0, delTrigSecs ); // i ...