-
... 0.0); signal = SinOsc .ar([440,445], 0, Decay .ar(0.1 * detect, 0.1)); signal }.play; ) // spot note transitions ( { var source1, signal, detect; source1 = LFSaw .ar( LFNoise0 .kr(1, 90, 400), 0, 0.5); detect = PV_HainsworthFoote .ar( FFT ( ...
-
... . { Blip .ar( Latch .ar( WhiteNoise .ar, Impulse .ar(9)) * 400 + 500, 4, 0.2) }.play; The above is just meant as example. LFNoise0 is a faster way to generate random steps : { Blip .ar( LFNoise0 .kr(9, 400 ,500), 4, 0.2) }.play;
-
... ouseY , MouseButton //example { SinOsc .ar( MouseX .kr(40, 10000, 1), 0, 0.1) }.play; //same but with a 2sec lag { SinOsc .ar( MouseX .kr(40, 10000, 'exponential' , 2), 0, 0.1) }.play;
-
... ouseX , MouseButton //example { SinOsc .ar( MouseY .kr(40, 10000, 1), 0, 0.1) }.play; //xy example { SinOsc .ar([ MouseX .kr(40, 10000, 1), MouseY .kr(40, 10000, 1)], 0, 0.1) }.play;
-
... ({ 4.do({ [1,2,3,4].do({ arg i; i.yield; }); }) }); 17.do({ x.next.postln }); ) Playing streams Because streams respond like functions to the value message, they can be used as a scheduling task. // compare: // a function, returning 0.5 ( S ...
-
... = Phid (0,0); x = a.asStream; Routine ({ loop({ x.next.postln; 0.2.wait; }) }).play; ) // using devicespecs: // for example wingman. for other specs see [HIDDeviceService] ( HIDDeviceService .deviceSpecs.put( 'WingMan Action Pad' , Identit ...
-
... )).plot; UGen ( { var a = SyncSaw .ar(100, 440, 0.1); a.abs // Absolute value }.play ) // compared to ( { var a = SyncSaw .ar(100, 440, 0.1); a }.play )
-
... i) - (2*in(i-1)) + in(i-2)) See also: HPZ1 // Compare: { WhiteNoise .ar(0.25) }.play; { HPZ2 .ar( WhiteNoise .ar(0.25)) }.play; // HPZ2 is useful to detect changes in a signal: // see also HPZ1 ( { var changingSignal = LFNoise0 .ar(1000); v ...
-
... rm distribution from lo to hi. It generates this when the SynthDef first starts playing, and remains fixed for the duration of the synth's existence. See also: LinRand , ExpRand ( SynthDef ( \help_Rand , { | out = 0, minmax = 1 | Out .ar(ou ...
-
... b2 = rho.squared.neg; SOS .ar( LFSaw .ar(200, 0, 0.1), 1.0, 0.0, 0.0, b1, b2) }.play ) ( { var rho, theta, b1, b2; theta = MouseX .kr(0.2pi, pi); rho = MouseY .kr(0.6, 0.99); b1 = 2.0 * rho * cos(theta); b2 = rho.squared.neg; SOS .ar( White ...