public static Note getLowestNote ( Note [ ] notes ) { Note lowestNote = notes [ 0 ] ; for ( int i = 1 ; i < notes . length ; i ++ ) if ( notes [ i ] . isLowerThan ( lowestNote ) ) lowestNote = notes [ i ] ; return lowestNote ; }
Returns the lowest note from the given array of notes .