uk.org.toot.dsp.jSTK.instrument
Interface Instrument
- All Known Implementing Classes:
- PluckedString
public interface Instrument
setSampleRate
void setSampleRate(int rate)
clear
void clear()
setFrequency
void setFrequency(float frequency)
- Allows pitch-bend, slides etc.
- Parameters:
frequency
- - change the frequency
noteOn
void noteOn(float frequency,
float amplitude,
float excitation,
float other)
- Parameters:
frequency
- - Hzamplitude
- - 0..1, the required amplitude, possibly compressedexcitation
- - 0..1, the uncompressed amplitude to use for timbreother
-
noteOff
void noteOff(float amplitude)
getSample
float getSample()
Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.