Fixed up simple note detection.

Needs a little more work to optimize and get better results.