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


public interface PianoRoll

Stores the notes in a midi sequence as a list of sequential notes.

See Also:
PianoRollViewParser

Method Summary
 NotesInMidi[] getNotes()
          Returns the notes in this piano roll.
 double[][] getNotesDoubles()
          Returns the notes as a matrix.
 

Method Detail

getNotes

NotesInMidi[] getNotes()
Returns the notes in this piano roll. The notes are ordered by each note's start time. The track number is included in each note, so you can separate out the notes by track.

Returns:
the notes

getNotesDoubles

double[][] getNotesDoubles()
Returns the notes as a matrix. Each row is one note. The columns are as follows:
0 - note value (pitch)
1 - note velocity
2 - note channel
3 - note start (ticks)
4 - note duration (ticks)
5 - note start (seconds)
6 - note duration (seconds)
7 - note track

Returns:
the notes in this piano roll