A tad more intelligent staff detection.

*Uses findpeaks in order to find local peaks. Mindistance is set in
 order to remove the aliasing of the lines.
*Checks if number of peaks is over 5. It may be valid then.