An U (short for "unit") represents a single audio or control process. U's are the basic building blocks of the Unit Library. Units can be chained together in a UChain to form a series of processes. Each unit can perform it's own little task, analogous to 'plugins' in popular commercial sequencers such as Logic and Pro Tools. Each unit is an instance of a Udef, which defines what the unit does and what it's parameters are. There is a global library of Udefs, where each Udef is stored by name. An U is created by giving the name of the desired Udef:
The U in the example above gets the following parameters from its Udef: \freq, \amp. There are various ways to set these:
This unit can be played individually via .prepareAndStart(s) and .stop. But it will not be audible. In's output is on private busses. It can only be made audible when combined with an U from one of the 'io' Udefs, for example \output, in a UChain:
Units have extensive graphical editors. The gui below is of the UChain in the code example above.
Each parameter can be edited via a dedicated gui element. Where most of these are sliders, there can also be different kinds of editors, all based on the information stored in the Udef. Changes in parameters will be instantly audible if the U is playing at that moment. Changes made when the U is not playing will be remembered and used when playing. Changing values via code or via other gui instances will change the value visually on this editor as well.
In the gui you can also change the Udef for a unit by dragging it from the defs window.
This basically does the same as c[0].defName = \saw
, and it keeps all the corresponding parameter settings. The unit itself is not replaced, it is just based on a new Udef.
U's are usually wrappers for Synths. Each unit represents a single Synth in a processing chain.
(describe method here)
defName |
(describe argument here) |
args |
(describe argument here) |
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
inArgs |
(describe argument here) |
server |
(describe argument here) |
startPos |
(describe argument here) |
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
inName |
(describe argument here) |
inArgs |
(describe argument here) |
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
... args |
(describe argument here) |
(returnvalue)
(describe method here)
... args |
(describe argument here) |
(returnvalue)
(describe method here)
key |
(describe argument here) |
(returnvalue)
(describe method here)
key |
(describe argument here) |
value |
(describe argument here) |
(returnvalue)
(describe method here)
key |
(describe argument here) |
(returnvalue)
(describe method here)
releaseTime |
(describe argument here) |
doneAction |
(describe argument here) |
(returnvalue)
(describe method here)
server |
(describe argument here) |
startPos |
(describe argument here) |
(returnvalue)
(describe method here)
mode |
(describe argument here) |
rate |
(describe argument here) |
id |
(describe argument here) |
what |
(describe argument here) |
(returnvalue)
(describe method here)
id |
(describe argument here) |
bus |
(describe argument here) |
(returnvalue)
(describe method here)
id |
(describe argument here) |
bus |
(describe argument here) |
(returnvalue)
(describe method here)
id |
(describe argument here) |
bus |
(describe argument here) |
(returnvalue)
(describe method here)
id |
(describe argument here) |
bus |
(describe argument here) |
(returnvalue)
(describe method here)
id |
(describe argument here) |
(returnvalue)
(describe method here)
id |
(describe argument here) |
(returnvalue)
(describe method here)
id |
(describe argument here) |
(returnvalue)
(describe method here)
id |
(describe argument here) |
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
unit |
(describe argument here) |
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
target |
(describe argument here) |
(returnvalue)
(describe method here)
selector |
(describe argument here) |
... args |
(describe argument here) |
(returnvalue)
(describe method here)
new |
(describe argument here) |
(returnvalue)
(describe method here)
new |
(describe argument here) |
(returnvalue)
(describe method here)
newDef |
(describe argument here) |
keepArgs |
(describe argument here) |
(returnvalue)
(describe method here)
newName |
(describe argument here) |
keepArgs |
(describe argument here) |
(returnvalue)
(describe method here)
amount |
(describe argument here) |
(returnvalue)
(describe method here)
synths |
(describe argument here) |
(returnvalue)
(describe method here)
synth |
(describe argument here) |
(returnvalue)
(describe method here)
synth |
(describe argument here) |
(returnvalue)
(describe method here)
target |
(describe argument here) |
startPos |
(describe argument here) |
synthAction |
(describe argument here) |
(returnvalue)
(describe method here)
targets |
(describe argument here) |
startPos |
(describe argument here) |
synthAction |
(describe argument here) |
(returnvalue)
(describe method here)
target |
(describe argument here) |
startPos |
(describe argument here) |
latency |
(describe argument here) |
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
key |
(describe argument here) |
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
stream |
(describe argument here) |
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
targets |
(describe argument here) |
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
target |
(describe argument here) |
(returnvalue)
(describe method here)
target |
(describe argument here) |
startPos |
(describe argument here) |
action |
(describe argument here) |
(returnvalue)
(describe method here)
target |
(describe argument here) |
loadDef |
(describe argument here) |
action |
(describe argument here) |
(returnvalue)
(describe method here)
target |
(describe argument here) |
loadDef |
(describe argument here) |
(returnvalue)
(describe method here)
target |
(describe argument here) |
(returnvalue)
(describe method here)
(returnvalue)
(describe method here)
server |
(describe argument here) |
(returnvalue)
(describe method here)
parent |
(describe argument here) |
bounds |
(describe argument here) |
(returnvalue)