edu.columbia.ee.csmit.MidiKaraoke.read
Interface NotesInMidi


public interface NotesInMidi

Stores the information associated with a midi note.


Method Summary
 int getChannel()
          Returns the channel for this note.
 double getDurationSeconds()
          Returns the note duration in seconds.
 long getDurationTick()
          Returns the number of ticks in the note.
 int getNote()
          Returns the midi number associated with the pitch of this note.
 double getStartSeconds()
          Returns the start time of the note in seconds.
 long getStartTick()
          Returns the tick number of the start of this note.
 int getTrackNumber()
          Returns the track for this note.
 int getVelocity()
          Returns the velocity of this note.
 

Method Detail

getNote

int getNote()
Returns the midi number associated with the pitch of this note.

Returns:
the note

getVelocity

int getVelocity()
Returns the velocity of this note.

Returns:
the velocity.

getStartTick

long getStartTick()
Returns the tick number of the start of this note. The tick is in fractions of a quarter note.

Returns:
the note start tick
See Also:
getDurationTick(), Sequence.getResolution()

getDurationTick

long getDurationTick()
Returns the number of ticks in the note.

Returns:
the note duration tick
See Also:
getStartTick()

getStartSeconds

double getStartSeconds()
Returns the start time of the note in seconds.

Returns:
the note start time
See Also:
getDurationSeconds()

getDurationSeconds

double getDurationSeconds()
Returns the note duration in seconds.

Returns:
the note duration in seconds
See Also:
getStartSeconds()

getChannel

int getChannel()
Returns the channel for this note.

Returns:
the channel

getTrackNumber

int getTrackNumber()
Returns the track for this note.

Returns:
the track