dguitar.adaptors.song.event
Class SongNoteOnMessage
java.lang.Object
dguitar.adaptors.song.event.SongMessageImpl
dguitar.adaptors.song.event.SongNotationMessage
dguitar.adaptors.song.event.SongNoteOnMessage
- All Implemented Interfaces:
- SongMessage
- public class SongNoteOnMessage
- extends SongNotationMessage
A note on message
- Author:
- crnash
Field Summary |
(package private) int |
fret
|
(package private) int |
pitch
|
(package private) int |
velocity
|
Constructor Summary |
SongNoteOnMessage(int pitch,
int velocity,
int duration,
int fret)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
pitch
int pitch
velocity
int velocity
fret
int fret
SongNoteOnMessage
public SongNoteOnMessage(int pitch,
int velocity,
int duration,
int fret)
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface SongMessage
- Overrides:
equals
in class SongNotationMessage
toString
public java.lang.String toString()
- Specified by:
toString
in interface SongMessage
- Overrides:
toString
in class SongNotationMessage
getVelocity
public int getVelocity()
- Returns:
- Returns the velocity.
setVelocity
public void setVelocity(int velocity)
- Parameters:
velocity
- The velocity to set.
getPitch
public int getPitch()
- Returns:
- Returns the pitch.
setPitch
public void setPitch(int pitch)
- Parameters:
pitch
- The pitch to set.
getFret
public int getFret()
setFret
public void setFret(int fret)