public class DualOscillatorSynthVoice extends Circuit implements UnitVoice
Modifier and Type | Field and Description |
---|---|
UnitInputPort |
amplitude |
UnitInputPort |
cutoff |
UnitInputPort |
filterEnvDepth |
UnitInputPort |
frequency |
UnitInputPort |
frequencyScaler
This scales the frequency value.
|
UnitInputPort |
oscShape1 |
UnitInputPort |
oscShape2 |
UnitInputPort |
Q |
FALSE, PORT_NAME_AMPLITUDE, PORT_NAME_CUTOFF, PORT_NAME_FREQUENCY, PORT_NAME_FREQUENCY_SCALER, PORT_NAME_INPUT, PORT_NAME_OUTPUT, PORT_NAME_PAN, PORT_NAME_PHASE, PORT_NAME_PRESSURE, PORT_NAME_TIMBRE, PORT_NAME_TIME, synthesisEngine, TRUE, VERY_SMALL_FLOAT
Constructor and Description |
---|
DualOscillatorSynthVoice() |
Modifier and Type | Method and Description |
---|---|
UnitOutputPort |
getOutput() |
static VoiceDescription |
getVoiceDescription() |
void |
noteOff(TimeStamp timeStamp) |
void |
noteOn(double freq,
double ampl,
TimeStamp timeStamp)
Play whatever you consider to be a note on this voice.
|
void |
reset() |
void |
usePreset(int presetIndex) |
add, addPortAlias, flattenOutputs, generate, getPortByName, setEnabled, setFrameRate, setSynthesisEngine
addPort, addPort, autoStop, convertHalfLifeToMultiplier, convertTimeToRate, generate, getCircuit, getFramePeriod, getFrameRate, getId, getPorts, getSynthesisEngine, getSynthesizer, getTopUnit, getUnitGenerator, incrementWrapPhase, isEnabled, isStartRequired, printConnections, printConnections, printConnections, pullData, setCircuit, setPort, start, start, start, stop, stop, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUnitGenerator, setPort
public UnitInputPort amplitude
public UnitInputPort frequency
public UnitInputPort frequencyScaler
public UnitInputPort oscShape1
public UnitInputPort oscShape2
public UnitInputPort cutoff
public UnitInputPort filterEnvDepth
public UnitInputPort Q
public void noteOn(double freq, double ampl, TimeStamp timeStamp)
UnitVoice
public UnitOutputPort getOutput()
getOutput
in interface UnitSource
public void reset()
public void usePreset(int presetIndex)
public static VoiceDescription getVoiceDescription()