Ooops MIDI numbers were wrong, and also added frequencyToNoteNumber method + tests