public class TxtNote extends Note
instrument, key| Constructor and Description |
|---|
TxtNote(byte key,
byte instrument) |
TxtNote(java.util.Scanner scanner) |
| Modifier and Type | Method and Description |
|---|---|
TxtNote |
clone() |
byte |
getInstrument() |
byte |
getKey() |
void |
setInstrument(byte instrument) |
void |
setKey(byte key) |
void |
write(java.lang.StringBuilder builder) |
equals, getRawInstrument, getRawKey, hashCodepublic TxtNote(java.util.Scanner scanner)
public TxtNote(byte key,
byte instrument)
public void write(java.lang.StringBuilder builder)
public byte getInstrument()
getInstrument in class NoteInstrument.fromNbsId(byte)public void setInstrument(byte instrument)
setInstrument in class Noteinstrument - The instrument of the note. Uses the NBS id system. See Instrument.fromNbsId(byte)public byte getKey()
public void setKey(byte key)