uk.org.toot.dsp.jSTK.instrument
Interface Instrument

All Known Implementing Classes:
PluckedString

public interface Instrument


Method Summary
 void clear()
           
 float getSample()
           
 void noteOff(float amplitude)
           
 void noteOn(float frequency, float amplitude, float excitation, float other)
           
 void setFrequency(float frequency)
          Allows pitch-bend, slides etc.
 void setSampleRate(int rate)
           
 

Method Detail

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 - - Hz
amplitude - - 0..1, the required amplitude, possibly compressed
excitation - - 0..1, the uncompressed amplitude to use for timbre
other -

noteOff

void noteOff(float amplitude)

getSample

float getSample()


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.