Figure out MidNote Problem

Don't know why I had so much trouble with this. The answer is so simple,
find the middle note by taking the indecies, adding them together, and
dividing by 2. I'm checking to make sure this always works.