plugin.midi
Class Note

java.lang.Object
  extended by plugin.midi.Note

public class Note
extends java.lang.Object

Instances from this class are notes in midi format defined by pitch, duration and timecode

Author:
Andreas

Field Summary
 long duration
           
 java.lang.String strPitch
           
 long timecode
           
 
Constructor Summary
Note(javax.sound.midi.MidiEvent evt, javax.sound.midi.ShortMessage msg)
          create a new instance
 
Method Summary
 long getDuration()
          get the duration for this note
 byte getPitchByte()
          get the bytes of the midi message for this note
 java.lang.String getPitchStr()
          the the pitch for this note
 long getTimecode()
          get the timecode for this note
 void setDuration(long duration)
          set the duration of this note
 java.lang.String toString()
          default output method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

strPitch

public java.lang.String strPitch

duration

public long duration

timecode

public long timecode
Constructor Detail

Note

public Note(javax.sound.midi.MidiEvent evt,
            javax.sound.midi.ShortMessage msg)
create a new instance

Parameters:
evt - the MidiEvent
msg - the MidiShortMessage
Method Detail

getTimecode

public long getTimecode()
get the timecode for this note


getDuration

public long getDuration()
get the duration for this note


getPitchStr

public java.lang.String getPitchStr()
the the pitch for this note


getPitchByte

public byte getPitchByte()
get the bytes of the midi message for this note


setDuration

public void setDuration(long duration)
set the duration of this note


toString

public java.lang.String toString()
default output method

Overrides:
toString in class java.lang.Object