Parse tempo, key and octave.
Little refactoring of parser.