public interface UnitVoice extends UnitSource
VoiceDescription,
Instrument| Modifier and Type | Method and Description |
|---|---|
UnitGenerator |
getUnitGenerator()
Typically a UnitVoice will be a subclass of UnitGenerator, which just returns "this".
|
void |
noteOff(TimeStamp timeStamp) |
void |
noteOn(double frequency,
double amplitude,
TimeStamp timeStamp)
Play whatever you consider to be a note on this voice.
|
void |
setPort(java.lang.String portName,
double value,
TimeStamp timeStamp)
Looks up a port using its name and sets the value.
|
void |
usePreset(int presetIndex) |
getOutputvoid noteOn(double frequency,
double amplitude,
TimeStamp timeStamp)
frequency - in Hz related to the perceived pitch of the note.amplitude - generally between 0.0 and 1.0timeStamp - when to play the notevoid noteOff(TimeStamp timeStamp)
UnitGenerator getUnitGenerator()
getUnitGenerator in interface UnitSourcevoid setPort(java.lang.String portName,
double value,
TimeStamp timeStamp)
portName - value - timeStamp - void usePreset(int presetIndex)