uk.org.toot.dsp.jSTK.instrument
Class PluckedString
java.lang.Object
uk.org.toot.dsp.jSTK.instrument.PluckedString
- All Implemented Interfaces:
- Instrument
public class PluckedString
- extends java.lang.Object
- implements Instrument
Method Summary |
void |
clear()
|
float |
getSample()
|
void |
noteOff(float amplitude)
|
void |
noteOn(float frequency,
float amplitude,
float excitation,
float position)
|
void |
pluck(float amplitude,
float excitation,
float position)
|
void |
setFrequency(float frequency)
Allows pitch-bend, slides etc. |
void |
setSampleRate(int rate)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluckedString
public PluckedString(float lowF)
setSampleRate
public void setSampleRate(int rate)
- Specified by:
setSampleRate
in interface Instrument
clear
public void clear()
- Specified by:
clear
in interface Instrument
setFrequency
public void setFrequency(float frequency)
- Description copied from interface:
Instrument
- Allows pitch-bend, slides etc.
- Specified by:
setFrequency
in interface Instrument
- Parameters:
frequency
- - change the frequency
pluck
public void pluck(float amplitude,
float excitation,
float position)
noteOn
public void noteOn(float frequency,
float amplitude,
float excitation,
float position)
- Specified by:
noteOn
in interface Instrument
- Parameters:
frequency
- - Hzamplitude
- - 0..1, the required amplitude, possibly compressedexcitation
- - 0..1, the uncompressed amplitude to use for timbre
noteOff
public void noteOff(float amplitude)
- Specified by:
noteOff
in interface Instrument
getSample
public float getSample()
- Specified by:
getSample
in interface Instrument
Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.