Added function to return Midi note from pitch. Rearranged exports mechanism. Added a test script to output all notes for pitches from 21 to 108.