apps.groove
Class GrooveInstrument

java.lang.Object
  extended by apps.groove.GrooveInstrument

public class GrooveInstrument
extends java.lang.Object

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

GrooveInstrument

public GrooveInstrument(java.lang.String name,
                        javax.sound.midi.MidiChannel channel)
Instantiates a new groove instrument.

Parameters:
name - the name
channel - the channel
Method Detail

endNote

public void endNote(int noteNumber,
                    int velocity)
End note.

Parameters:
noteNumber - the note number
velocity - the velocity

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

isNoteOn

public boolean isNoteOn()
Checks if is note on.

Returns:
true, if is note on

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

startNote

public void startNote(int noteNumber,
                      int velocity)
Start note.

Parameters:
noteNumber - the note number
velocity - the velocity