View Source SuperCollider.SynthDef.UGen (SuperCollider v0.1.4)
UGens represent calculations with signals. They are the basic building blocks of synth definitions on the server, and are used to generate or process both audio and control signals.
They're made up of:
- class_name - Examples include
SinOsc
,Out
, andControl
. - rate - The rate at which the UGen computes values. There are three rates numbered 0, 1, 2.
- special_index - This value is used by some unit generators for a special purpose. For example, UnaryOpUGen and BinaryOpUGen use it to indicate which operator to perform. If not used it should be set to zero.
- inputs - The inputs to this unit generator
- outputs - The list of outputs of this unit generator. Each element in the list is the
rate
of the output, using the same number as therate
field of this struct.
Link to this section Summary
Support functions
The parse function is used as part deconstructing UGen binary data in SuperCollider scsyndef v2 files.
Encodes UGens into SuperCollider's binary format.
Link to this section Support functions
The parse function is used as part deconstructing UGen binary data in SuperCollider scsyndef v2 files.
It is not usually accessed directly, but is called via SuperCollider.SynthDef.ScFile.parse(filename)
.
Encodes UGens into SuperCollider's binary format.
This function is not usually called directly, but is automatically called as part of SuperCollider.SynthDef.ScFile.encode(synthdef)
.