Set up melody state, including a little switch for finding the octave of the current scale.
Made initial scale/time sig/tempo use functions to set themselves up, like I should have done in the first place. Duh.