/Music-Listening-Quiz-Tool

Useful study tool for Listening quizzes frequently found in music classes

Primary LanguageJava

Music Listening Quiz Tool

This program is a study tool for listening quizzes in music classes.

How to use the program

  • Acquire the audio files you want to use in the program (they must be in .wav format)

  • In the input.txt file, specify the number of pieces you want to include on the top line. Then, provide the repertoire information in the following format:

composer;piece name;time period;piece type;year;audiofile.wav;minxxsecxx;

For example:

Hector Berlioz;Symphonie fantastique;Romantic;Symphony;1830s;symphoniefantastiqueaudio.wav;min56sec41;
Make sure the audio files and input.txt are in the same folder.

Notes

  • When providing the audio file name, ensure to include the ".wav" extension.
  • The "minxxsecxx" field is where you specify the length of the audio file. If the piece is less than 10 minutes, add a leading zero (e.g. min03sec05).
  • The format must be followed exactly; any deviation may cause errors.

Running the program

  • Click on the .bat file
  • Once the program opens, you will be prompted to provide the path to the folder containing the audio and input files.
  • If you encounter the error "Exception in thread "main" java.io.FileNotFoundException: C:\Users\AFE123x\Desktop\audio\Listeningquizinput.txt (The system cannot find the file specified)", it may be because you forgot a slash at the end of the path or you need to use forward slashes instead of back slashes.
  • After providing the path, you will be asked if you want the program to select a piece at random.
  • If you encounter the error "java.io.FileNotFoundException" or the program closes unexpectedly, it may be because you mistyped the audio file name in the input.txt file or did not place the audio files in the same folder as input.txt.

Future plans

A GUI version of this program is planned, but the development of GUI skills is necessary before implementation.