|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.charlesames.utility.common.Disposable
net.charlesames.music.musicxml.MusicXmlEntity
net.charlesames.music.musicxml.MidiInstrument
public class MidiInstrument
The MidiInstrument class implements the MusicXML <midi-instrument> element.
| Method Summary | |
|---|---|
void |
dispose()
Release resources engaged by this object, thus rendering it amenable to garbage collection. |
boolean |
equals(MusicXmlEntity other)
Test if this MusicXML entity has the same content as another object. |
static MidiInstrument |
fromXmlNode(org.w3c.dom.Element element,
ScorePart container)
Create a new MidiInstrument instance and fill it with loaded data. |
int |
getBank()
Setter for the Bank property |
int |
getChannel()
Setter for the Channel property |
int |
getElevation()
Setter for the Elevation property |
java.lang.String |
getID()
Getter for the ID property. |
int |
getKey()
Setter for the Key property |
int |
getPan()
Setter for the Pan property |
int |
getProgram()
Setter for the Program property |
double |
getVolume()
Setter for the Volume property |
void |
putXmlData(org.w3c.dom.Element element)
|
void |
setBank(int bank)
Setter for the Bank property. |
void |
setChannel(int channel)
Setter for the Channel property. |
void |
setElevation(int degrees)
Setter for the Elevation property. |
void |
setKey(int key)
Setter for the Key property. |
void |
setPan(int degrees)
Setter for the Pan property. |
void |
setProgram(int program)
Setter for the Program property. |
void |
setVolume(double volume)
Setter for the Volume property. |
org.w3c.dom.Node |
toXmlNode(org.w3c.dom.Node parent)
Serialize the content of a MusicXML entity into an XML element. |
| Methods inherited from class net.charlesames.music.musicxml.MusicXmlEntity |
|---|
getContainer, makeDirty |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void dispose()
Disposable
dispose in class Disposablepublic java.lang.String getID()
public int getBank()
public void setBank(int bank)
bank - The intended Bank value.public int getChannel()
public void setChannel(int channel)
channel - The intended Channel value.public int getProgram()
public void setProgram(int program)
program - The intended Program value.public int getKey()
public void setKey(int key)
key - The intended Key value.public double getVolume()
public void setVolume(double volume)
volume - The intended Volume value.public int getPan()
public void setPan(int degrees)
degrees - The intended Pan value.public int getElevation()
public void setElevation(int degrees)
degrees - The intended Elevation value.
public static MidiInstrument fromXmlNode(org.w3c.dom.Element element,
ScorePart container)
element - The XML element that provides the MidiInstrument datacontainer - The ScorePart which will contain the new MidiInstrument instance.
public org.w3c.dom.Node toXmlNode(org.w3c.dom.Node parent)
MusicXmlEntity
toXmlNode in class MusicXmlEntityparent - The XML element which is to receive the data.
public void putXmlData(org.w3c.dom.Element element)
public boolean equals(MusicXmlEntity other)
MusicXmlEntity
equals in class MusicXmlEntityother - The other object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||