public class PolyphonicInstrument extends Circuit implements UnitSource, Instrument
| Modifier and Type | Field and Description |
|---|---|
UnitInputPort |
amplitude |
FALSE, TRUE| Constructor and Description |
|---|
PolyphonicInstrument(UnitVoice[] voices) |
| Modifier and Type | Method and Description |
|---|---|
void |
allNotesOff(TimeStamp timeStamp) |
UnitOutputPort |
getOutput() |
boolean |
isOn(int tag) |
void |
noteOff(int tag,
TimeStamp timeStamp) |
void |
noteOn(int tag,
double frequency,
double amplitude,
TimeStamp timeStamp) |
void |
setPort(int tag,
java.lang.String portName,
double value,
TimeStamp timeStamp) |
void |
usePreset(int presetIndex) |
void |
usePreset(int presetIndex,
TimeStamp timeStamp) |
add, flattenOutputs, generate, setEnabled, setSynthesisEngineaddPort, addPort, convertHalfLifeToMultiplier, generate, getCircuit, getFramePeriod, getFrameRate, getPortByName, getPorts, getSynthesisEngine, getSynthesizer, getTopUnit, getUnitGenerator, isEnabled, pullData, setCircuit, setFrameRate, setPort, start, start, stop, stopequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUnitGeneratorpublic UnitInputPort amplitude
public PolyphonicInstrument(UnitVoice[] voices)
public UnitOutputPort getOutput()
getOutput in interface UnitSourcepublic void usePreset(int presetIndex,
TimeStamp timeStamp)
usePreset in interface Instrumentpublic void noteOn(int tag,
double frequency,
double amplitude,
TimeStamp timeStamp)
noteOn in interface Instrumentpublic void noteOff(int tag,
TimeStamp timeStamp)
noteOff in interface Instrumentpublic void setPort(int tag,
java.lang.String portName,
double value,
TimeStamp timeStamp)
setPort in interface Instrumentpublic void allNotesOff(TimeStamp timeStamp)
allNotesOff in interface Instrumentpublic boolean isOn(int tag)