any number of octaves now supported.
fix for frequency calculation.