|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.groove.GrooveInstrument
public class GrooveInstrument
The Class GrooveInstrument.
Constructor Summary | |
---|---|
GrooveInstrument(java.lang.String name,
javax.sound.midi.MidiChannel channel)
Instantiates a new groove instrument. |
Method Summary | |
---|---|
void |
endNote(int noteNumber,
int velocity)
End note. |
java.lang.String |
getName()
Gets the name. |
boolean |
isNoteOn()
Checks if is note on. |
void |
setName(java.lang.String name)
Sets the name. |
void |
startNote(int noteNumber,
int velocity)
Start note. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrooveInstrument(java.lang.String name, javax.sound.midi.MidiChannel channel)
name
- the namechannel
- the channelMethod Detail |
---|
public void endNote(int noteNumber, int velocity)
noteNumber
- the note numbervelocity
- the velocitypublic java.lang.String getName()
public boolean isNoteOn()
public void setName(java.lang.String name)
name
- the new namepublic void startNote(int noteNumber, int velocity)
noteNumber
- the note numbervelocity
- the velocity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |