|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsampler.MidiInstrument
public class MidiInstrument
Represents a MIDI instrument.
| Constructor Summary | |
|---|---|
MidiInstrument()
Creates a new instance of MidiInstrument |
|
MidiInstrument(MidiInstrumentInfo info)
Creates a new instance of MidiInstrument. |
|
| Method Summary | |
|---|---|
void |
addMidiInstrumentListener(MidiInstrumentListener l)
Registers the specified listener for receiving event messages. |
boolean |
equals(java.lang.Object obj)
Determines whether the specified object is of type MidiInstrument and has equal map ID, MIDI bank and MIDI program. |
MidiInstrumentInfo |
getInfo()
Gets the information about this instrument. |
java.lang.String |
getName()
Gets the name of this MIDI instrument. |
void |
removeMidiInstrumentListener(MidiInstrumentListener l)
Removes the specified listener. |
void |
setInfo(MidiInstrumentInfo info)
Sets the information about this MIDI instrument. |
void |
setName(java.lang.String name)
Sets the name of this MIDI instrument. |
java.lang.String |
toString()
Returns the program number and name of this instrument. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MidiInstrument()
public MidiInstrument(MidiInstrumentInfo info)
MidiInstrument.
info - Provides mapping information about this instrument.| Method Detail |
|---|
public void addMidiInstrumentListener(MidiInstrumentListener l)
l - The MidiInstrumentListener to register.public void removeMidiInstrumentListener(MidiInstrumentListener l)
l - The MidiInstrumentListener to remove.public java.lang.String getName()
public void setName(java.lang.String name)
name - The new name of this MIDI instrument.public MidiInstrumentInfo getInfo()
public void setInfo(MidiInstrumentInfo info)
info - The new information about this MIDI instrument.public boolean equals(java.lang.Object obj)
MidiInstrument and has equal map ID, MIDI bank and MIDI program.
equals in class java.lang.Objectobj - The reference object with which to compare.
true if the specified object is of type
MidiInstrument and has equal map ID, MIDI bank and MIDI program.public java.lang.String toString()
toString in class java.lang.Object
|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||