-
... se .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;
-
... tcut. Default value is false. doAction Evaluate the receiver's action function. Examples // Simple example g = SCMenuGroup ( nil , "stuff" , 10); i = SCMenuItem (g, "foo" ); j = SCMenuItem (g, "bar" ); j.action = { "bar!!" .postln}; k = SCM ...
-
... max( b = a * 2; b + 5, 10); // computes the maximum of b+5 and 10 In the above example, the sequence: b = a * 2; b + 5 acts as a single expression for the first argument to max() .
-
... ctor to dezipper cursor movement. (Default 0.2) see also MouseY , 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) }.pla ...
-
... buffer can be reallocated at any time, using .ir will not track the changes. // example s.sendMsg( "/b_allocRead" , 0, "sounds/a11wlk01.wav" ); ( x = { arg rate=1; BufRd .ar(1, 0, Phasor .ar(0, BufRateScale .kr(0) * rate, 0, BufFrames .kr(0 ...
-
... useful when the original is to be kept unchanged. see Ref for other methods. // example: a = [1, 2, 3]; x = RefCopy (a); b = x.next; b.put(0, 100); // modify b a; // a is unchanged.
-
... nt of shift in cycles per second phase - phase of the frequency shift (0 - 2pi) Examples // shifting a 100Hz tone by 1 Hz rising to 500Hz { FreqShift .ar( SinOsc .ar(100), XLine .kr(1,500,5),0,[0.5,0.5])}.play(s); // shifting a complex tone ...
-
... ce your Objective-C object is allocated / retained you can call it using invoke Example: The Objective-C synthax: NSNumber *n = [[ NSNumber alloc] initWithFloat: 1.1]; [n floatValue]; turns into: n = SCNSObject ( "NSNumber" , "initWithFloat ...
-
... to return structurally related: Pwrand , TWindex , TWChoose see also: Demand // example ( { var a, freq, trig; a = Dwrand ([0, 1, 2, 7], [0.4, 0.4, 0.1, 0.1], inf ).dpoll; trig = Impulse .kr( MouseX .kr(1, 400, 1)); freq = Demand .kr(trig, ...
-
... e superclass: InfoUGenBase returns the current sample rate of the server *ir // example { SampleRate .ir.poll }.play; // compares a 441 Hz sine tone derived from sample rate (44100 * 0.01, left) // with a 440 Hz tone (right), resultin in a ...