MidNote Problem Fully Solved

Previous solution did not work for notes close together. Now notes are
treated as coordinate values.  Finding the distance yields the octave
and the number of steps to the next note.