-
pvcalc2 Process the bins of two FFT chains chain = chain.pvcalc2(chain2, numframes, func, frombin, tobin, zeroothers) pvcalc2 is just like pvcalc but can combine two FFT chains together. See pvcalc for more information. func should be a fun ...
-
Using the Startup File Once the class library is finished compiling the interpreter looks for a file at an operating system dependent path and if such a file exists, executes any code within it. (This happens within Main -startup.) By creat ...
-
SynthDefs Use the SynthDef class to build the engines for synths that will run on the server. The engines, which can be saved to disk and reused, are analogous to presets on commercial hardware and software synthesizers. When notated as cod ...
-
... use the PhidKey or PhidSlot pattern. For MIDI, the best approach is to save an incoming value into a variable, and then use Pfunc to access the variable for each event. ( ~legato = 1; c = CCResponder ({ |src, chan, num, value| ~legato = va ...
-
Using Extensions See also: Writing-Classes Writing_Unit_Generators Quarks SC supports extensions to its class library, documentation, and server UGen plugins. Extensions should be packaged as a single folder containing all three (for conven ...
-
hypot hypotenuse BinaryOperator hypot(x, y) x hypot: y x.hypot(y) Returns the square root of the sum of the squares of a and b. Or equivalently, the distance from the origin to the point (x, y). See also atan2 . In this example, hypot is us ...
-
Timing in NodeProxy 4 Changes that happen to NodeProxy, most importantly setting its source, are normally done whenever the put method is called (or, in ProxySpace, the assignment operation = ). Sometimes it is desirable to time these chang ...
-
Scheduling Events Music happens over time, and to make effective music, it's necessary to control when things happen. In SuperCollider, this is done by scheduling things on clocks. Clocks A clock in SuperCollider has two major functions. It ...
-
PeakFollower track peak signal amplitude PeakFollower.ar(in, decay) Outputs the peak amplitude of the signal received at the input. if level is below maximum, the level decreases by the factor given in decay. in - input signal. decay - deca ...
-
Randomness in SC As in any computer program, there are no "truly random" number generators in SC. They are pseudo-random, meaning they use very complex, but deterministic algorithms to generate sequences of numbers that are long enough and ...