public interface Instrument
Modifier and Type | Method and Description |
---|---|
void |
noteOff()
Stop playing a note.
|
void |
noteOn(float duration)
Start playing a note.
|
void noteOn(float duration)
duration
- float: how long the note will last
(i.e. noteOff will be called after this many seconds)void noteOff()