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

All Superinterfaces:
ChannelMidi, TrackMidi

public interface TimedNote
extends TrackMidi, ChannelMidi

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 getVelocity()
          Returns the velocity of this note.
 
Methods inherited from interface edu.columbia.ee.csmit.MidiKaraoke.read.TrackMidi
getSeconds, getTicks, getTrackNumber
 

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.

Specified by:
getChannel in interface ChannelMidi
Returns:
the channel