public Note getHighestNote ( ) { Note highestNote = ( Note ) m_notes . elementAt ( 0 ) ; //short highestHeight = highestNote.getHeight(); //short currentNoteLength = 0; for ( int i = 1 ; i < m_notes . size ( ) ; i ++ ) if ( ( ( Note ) ( m_notes . elementAt ( i ) ) ) . isHigherThan ( highestNote ) ) highestNote = ( Note ) m_notes . elementAt ( i ) ; return highestNote ; }
Returns the highest note among the notes composing this multi note .