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.UnitInputPortamplitudecom.jsyn.ports.UnitInputPortamplitudeScalercom.jsyn.ports.UnitInputPortcentDeviationstatic doubleONE_OVER_1200Fields 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 doublecalcRateForTransposition(double audioFrameRate, double performanceFrequency, double closestSampledPitch)com.jsyn.ports.UnitOutputPortgetOutput()SamplePlayingInstrumentgetSamplePlayingInstrument()com.jsyn.unitgen.UnitGeneratorgetUnitGenerator()voidnoteOff(com.softsynth.shared.time.TimeStamp timeStamp)voidnoteOn(double frequency, double amplitude, com.softsynth.shared.time.TimeStamp timeStamp)voidsetReader(com.jsyn.unitgen.VariableRateDataReader reader)voidsetSamplePlayingInstrument(SamplePlayingInstrument samplePlayingInstrument)voidusePreset(int presetIndex)Methods inherited from class com.jsyn.unitgen.Circuit
add, addPortAlias, flattenOutputs, generate, getPortByName, setEnabled, setFrameRate, setSynthesisEngineMethods 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, stopMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getOutputin interfacecom.jsyn.unitgen.UnitSource
-
getUnitGenerator
public com.jsyn.unitgen.UnitGenerator getUnitGenerator()- Specified by:
getUnitGeneratorin interfacecom.jsyn.unitgen.UnitSource- Specified by:
getUnitGeneratorin interfacecom.jsyn.unitgen.UnitVoice- Overrides:
getUnitGeneratorin classcom.jsyn.unitgen.UnitGenerator
-
calcRateForTransposition
public double calcRateForTransposition(double audioFrameRate, double performanceFrequency, double closestSampledPitch) -
usePreset
public void usePreset(int presetIndex)- Specified by:
usePresetin interfacecom.jsyn.unitgen.UnitVoice- Overrides:
usePresetin classcom.jsyn.unitgen.Circuit
-