- All Known Implementing Classes:
- DefaultInstrument
public interface Instrument
The Instrument interface is expected by AudioOutput.playNote. You can create your
own instruments by implementing this interface in one of your classes. Typically,
you will create a class that constructs a UGen chain: an Oscil patched to a filter
patched to an ADSR. When noteOn is called you will patch the end of your chain to
the AudioOutput you are using and when noteOff is called you will unpatch.
- Author:
- Damien Di Fede