Measure intervals between notes