com.jsyn.instruments
Class ClassicSynthVoice
java.lang.Object
com.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.Circuit
com.jsyn.instruments.ClassicSynthVoice
- All Implemented Interfaces:
- UnitSource, UnitVoice
public class ClassicSynthVoice
- extends Circuit
- implements UnitVoice
Typical synthesizer voice with an oscillator and resonant filter.
Modulate the amplitude and filter using DAHDSR envelopes.
Methods inherited from class com.jsyn.unitgen.UnitGenerator |
addPort, convertHalfLifeToMultiplier, generate, getCircuit, getFramePeriod, getFrameRate, getPortByName, getPorts, getSynthesisEngine, isEnabled, pullData, setCircuit, setFrameRate, start, stop |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
frequency
public UnitInputPort frequency
pitchModulation
public UnitInputPort pitchModulation
ClassicSynthVoice
public ClassicSynthVoice()
setPreset
public void setPreset(int presetIndex)
noteOff
public void noteOff(TimeStamp timeStamp)
- Specified by:
noteOff
in interface UnitVoice
noteOn
public void noteOn(TimeStamp timeStamp,
double freq,
double ampl)
- Specified by:
noteOn
in interface UnitVoice
getOutput
public UnitOutputPort getOutput()
- Specified by:
getOutput
in interface UnitSource