public class SampleVoice extends Object implements com.jsyn.unitgen.UnitVoice
| Constructor and Description |
|---|
SampleVoice(String sampleFile)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.jsyn.ports.UnitOutputPort |
getOutput()
Not implemented!
|
com.jsyn.unitgen.UnitGenerator |
getUnitGenerator() |
void |
noteOff(com.softsynth.shared.time.TimeStamp ts)
Queue off the current sample.
|
void |
noteOn(double d,
double a,
com.softsynth.shared.time.TimeStamp ts)
Play a sample.
|
void |
setPort(String string,
double d,
com.softsynth.shared.time.TimeStamp ts)
Not implemented!
|
void |
usePreset(int i)
Not implemented!
|
public SampleVoice(String sampleFile) throws org.openbase.jul.exception.InstantiationException
sampleFile - Directory with samples for this voice.org.openbase.jul.exception.InstantiationExceptionpublic void noteOn(double d,
double a,
com.softsynth.shared.time.TimeStamp ts)
noteOn in interface com.jsyn.unitgen.UnitVoiced - Pitch (Unused)a - Amplitudets - TimeStamp (Unused)public void noteOff(com.softsynth.shared.time.TimeStamp ts)
noteOff in interface com.jsyn.unitgen.UnitVoicets - Timestamppublic com.jsyn.unitgen.UnitGenerator getUnitGenerator()
getUnitGenerator in interface com.jsyn.unitgen.UnitSourcegetUnitGenerator in interface com.jsyn.unitgen.UnitVoicepublic void setPort(String string, double d, com.softsynth.shared.time.TimeStamp ts)
setPort in interface com.jsyn.unitgen.UnitVoicestring - d - ts - public void usePreset(int i)
usePreset in interface com.jsyn.unitgen.UnitVoicei - public com.jsyn.ports.UnitOutputPort getOutput()
getOutput in interface com.jsyn.unitgen.UnitSourceCopyright © 2014–2017 openbase.org. All rights reserved.