dguitar.adaptors.song.event
Class SongNoteOnMessage

java.lang.Object
  extended bydguitar.adaptors.song.event.SongMessageImpl
      extended bydguitar.adaptors.song.event.SongNotationMessage
          extended bydguitar.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
           
 
Fields inherited from class dguitar.adaptors.song.event.SongNotationMessage
 
Constructor Summary
SongNoteOnMessage(int pitch, int velocity, int duration, int fret)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getFret()
           
 int getPitch()
           
 int getVelocity()
           
 void setFret(int fret)
           
 void setPitch(int pitch)
           
 void setVelocity(int velocity)
           
 java.lang.String toString()
           
 
Methods inherited from class dguitar.adaptors.song.event.SongNotationMessage
getDuration, setDuration
 
Methods inherited from class dguitar.adaptors.song.event.SongMessageImpl
hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

pitch

int pitch

velocity

int velocity

fret

int fret
Constructor Detail

SongNoteOnMessage

public SongNoteOnMessage(int pitch,
                         int velocity,
                         int duration,
                         int fret)
Method Detail

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)