MKUnitGenerator Class You can allocate a MKUnitGenerator from an
open MKOrchestra.
[orch allocUnitGenerator: [Out2sumUGx class]];
|
An allocated MKUnitGenerator is, by definition, running on the DSP.
You can deallocate a MKUnitGenerator by sending:
[aUnitGenerator release];
|
MKUnitGenerators are in one of three
possible states:
To set these states you send the following standard messages:
idle, run, finish
These invoke the following methods, which you may implement
if you make your own MKUnitGenerator class:
idleSelf, runSelf, finishSelf
The return value of finish
(and finishSelf) is a
double that indicates the time until the
MKUnitGenerator will be finished.
In addition to these standard methods, individual
MKUnitGenerator classes implement
methods particular to their operation. Common methods
include setInput: and
setOutput:.
E.g. oscillators implement setFreq:.