Frequency to midi conversion is OK