Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (5266) Code (160) Doc (3338) Help (578) Quark (1166) Plugin (24) SCDoc ↗ Forum ↗ Google ↗
  1. Latch Help

    ... 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;

  2. CocoaMenuItem Help

    ... 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 ...

  3. Expression-Sequence Help

    ... 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() .

  4. MouseX Help

    ... 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 ...

  5. BufRateScale Help

    ... 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 ...

  6. RefCopy Help

    ... 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.

  7. FreqShift Help

    ... 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 ...

  8. SCNSObject Help

    ... 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 ...

  9. Dwrand Help

    ... 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, ...

  10. SampleRate Help

    ... 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 ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow