public class NbsCustomInstrument
extends java.lang.Object
| Constructor and Description |
|---|
NbsCustomInstrument(com.google.common.io.LittleEndianDataInputStream dis) |
NbsCustomInstrument(java.lang.String name,
java.lang.String soundFileName,
byte pitch,
boolean pressKey) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName() |
byte |
getPitch() |
java.lang.String |
getSoundFileName() |
int |
hashCode() |
boolean |
isPressKey() |
void |
setName(java.lang.String name) |
void |
setPitch(byte pitch) |
void |
setPressKey(boolean pressKey) |
void |
setSoundFileName(java.lang.String soundFileName) |
void |
write(com.google.common.io.LittleEndianDataOutputStream dos) |
public NbsCustomInstrument(com.google.common.io.LittleEndianDataInputStream dis)
throws java.io.IOException
java.io.IOExceptionpublic NbsCustomInstrument(java.lang.String name,
java.lang.String soundFileName,
byte pitch,
boolean pressKey)
public void write(com.google.common.io.LittleEndianDataOutputStream dos)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getName()
public void setName(java.lang.String name)
name - The name of the instrument.public java.lang.String getSoundFileName()
public void setSoundFileName(java.lang.String soundFileName)
soundFileName - The sound file of the instrument (just the file name, not the path).public byte getPitch()
public void setPitch(byte pitch)
pitch - The pitch of the sound file. Just like the note blocks, this ranges from 0-87. Default is 45 (F#4).public boolean isPressKey()
public void setPressKey(boolean pressKey)
pressKey - Whether the piano should automatically press keys with this instrument when the marker passes them.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object