public class InstrumentElement extends CategorizedElement
Objects of this class represent either an instrument or a category of instruments.
| Modifier and Type | Field and Description |
|---|---|
int |
instrNum
Instrument number as defined by the MIDI specification (or -1 if it’s a category)
|
java.lang.String |
name
configured instrument name
|
category| Constructor and Description |
|---|
InstrumentElement(int instrNum,
java.lang.String name,
boolean category)
Creates a new instrument element or instrument category with the given parameters as it’s properties.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Used for combobox options
|
isCategorypublic int instrNum
Instrument number as defined by the MIDI specification (or -1 if it’s a category)
public java.lang.String name
configured instrument name
public InstrumentElement(int instrNum,
java.lang.String name,
boolean category)
Creates a new instrument element or instrument category with the given parameters as it’s properties.
instrNum - instrument number as defined by the MIDI specification (or -1 if it’s a category)name - configured instrument namecategory - true if a category shall be created – false if it’s a normal instrument