Class VariableRateReaderUnitVoice
java.lang.Object
com.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.Circuit
com.softsynth.jmsl.jsyn2.unitvoices.VariableRateReaderUnitVoice
- All Implemented Interfaces:
com.jsyn.unitgen.UnitSource
,com.jsyn.unitgen.UnitVoice
- Direct Known Subclasses:
VariableRateMonoReaderUnitVoice
,VariableRateStereoReaderUnitVoice
public class VariableRateReaderUnitVoice
extends com.jsyn.unitgen.Circuit
implements com.jsyn.unitgen.UnitVoice
-
Field Summary
Fields Modifier and Type Field Description com.jsyn.ports.UnitInputPort
amplitude
com.jsyn.ports.UnitInputPort
amplitudeScaler
com.jsyn.ports.UnitInputPort
centDeviation
static double
ONE_OVER_1200
Fields inherited from class com.jsyn.unitgen.UnitGenerator
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, TRUE
-
Constructor Summary
Constructors Constructor Description VariableRateReaderUnitVoice()
-
Method Summary
Modifier and Type Method Description double
calcRateForTransposition(double audioFrameRate, double performanceFrequency, double closestSampledPitch)
com.jsyn.ports.UnitOutputPort
getOutput()
SamplePlayingInstrument
getSamplePlayingInstrument()
com.jsyn.unitgen.UnitGenerator
getUnitGenerator()
void
noteOff(com.softsynth.shared.time.TimeStamp timeStamp)
void
noteOn(double frequency, double amplitude, com.softsynth.shared.time.TimeStamp timeStamp)
void
setReader(com.jsyn.unitgen.VariableRateDataReader reader)
void
setSamplePlayingInstrument(SamplePlayingInstrument samplePlayingInstrument)
void
usePreset(int presetIndex)
Methods inherited from class com.jsyn.unitgen.Circuit
add, addPortAlias, flattenOutputs, generate, getPortByName, setEnabled, setFrameRate, setSynthesisEngine
Methods inherited from class com.jsyn.unitgen.UnitGenerator
addPort, addPort, convertHalfLifeToMultiplier, generate, getCircuit, getFramePeriod, getFrameRate, getId, getPorts, getSynthesisEngine, getSynthesizer, getTopUnit, isEnabled, isStartRequired, printConnections, printConnections, printConnections, pullData, setCircuit, setPort, start, start, start, stop, stop, stop
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jsyn.unitgen.UnitVoice
setPort
-
Field Details
-
centDeviation
public com.jsyn.ports.UnitInputPort centDeviation -
amplitude
public com.jsyn.ports.UnitInputPort amplitude -
amplitudeScaler
public com.jsyn.ports.UnitInputPort amplitudeScaler -
ONE_OVER_1200
public static final double ONE_OVER_1200- See Also:
- Constant Field Values
-
-
Constructor Details
-
VariableRateReaderUnitVoice
public VariableRateReaderUnitVoice()
-
-
Method Details
-
setReader
public void setReader(com.jsyn.unitgen.VariableRateDataReader reader) -
getSamplePlayingInstrument
-
setSamplePlayingInstrument
-
getOutput
public com.jsyn.ports.UnitOutputPort getOutput()- Specified by:
getOutput
in interfacecom.jsyn.unitgen.UnitSource
-
getUnitGenerator
public com.jsyn.unitgen.UnitGenerator getUnitGenerator()- Specified by:
getUnitGenerator
in interfacecom.jsyn.unitgen.UnitSource
- Specified by:
getUnitGenerator
in interfacecom.jsyn.unitgen.UnitVoice
- Overrides:
getUnitGenerator
in classcom.jsyn.unitgen.UnitGenerator
-
calcRateForTransposition
public double calcRateForTransposition(double audioFrameRate, double performanceFrequency, double closestSampledPitch) -
usePreset
public void usePreset(int presetIndex)- Specified by:
usePreset
in interfacecom.jsyn.unitgen.UnitVoice
- Overrides:
usePreset
in classcom.jsyn.unitgen.Circuit
-