Modified the accuracy algorithm.

It now relies on the variance of notes, rather than their mean linear deviation.