Text to Melody Specification

Your goal is to create a program that reads note values and wait times out of a text file and then uses playPianoNote(int) and wait(int) from SoundManager to reproduce the melody in the text file. You want the note values to be on odd numbered lines and the wait times to be on even numbered lines. The notes should range from 1-8 and the times should be any value measured in miliseconds.

Example of text file with line numbers:

  1. 2
  2. 500
  3. 5
  4. 200
  5. 8

The above example when fed to the program should play note 2 wait half a second play note 5 wait 0.2 seconds and then play note 8