A Tk-based program that can help you prepare for your music final with randomly-generated listening quizzes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 3.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. __MusicQuizzer__ (_musicquizzer_) is a Python program that can help you prepare
  2. for any test that involves listening to excerpts of music pieces and answering
  3. multiple choice questions about them.
  4. # Installation
  5. ## Mac OS X
  6. Get [MacPorts](http://www.macports.org/install.php), if you don't have it.
  7. From Terminal (`/Applications/Utiliies/Terminal`), do:
  8. sudo port install python26
  9. sudo port install py26-game
  10. Next, download MusicQuizzer and uncompress it. Move the folder wherever you
  11. want (keep its contents intact!) and double-click on `mac_osx.sh` to use the
  12. quizzer.
  13. ## Windows
  14. MusicQuizzer is written in Python, a language that does not come with Windows
  15. by default. Download the latest version of Python 2.7.x
  16. [here](http://python.org/download/) (_not_ Python 3). Use the default settings
  17. during installation.
  18. Next, download and install pygame from
  19. [here](http://pygame.org/ftp/pygame-1.9.2a0.win32-py2.7.msi).
  20. Finally, download MusicQuizzer and extract it wherever you want. To use, simply
  21. double-click on the "musicquizzer" file inside (do not move or delete any of
  22. the other files).
  23. ## Linux (with apt-get)
  24. You should be on at least Python 2.7 (check with `python --version`), assuming
  25. you keep your operating system up-to-date.
  26. git clone git://github.com/earwig/music-quizzer.git
  27. cd music-quizzer
  28. sudo apt-get install python-pygame python-tk
  29. Execute `python musicquizzer.py` from your terminal when you wish to use the
  30. quizzer.
  31. # Usage
  32. The first time you start the program, it will download all of the 25 necessary
  33. (default) music pieces to the `pieces` folder. This is a ~70 MB download.
  34. MusicQuizzer will present you with an answer sheet, containing four or five
  35. multiple choice questions per piece (which are, of course, randomized every
  36. time you begin a new quiz). Press `Start Quiz` to begin listening to the
  37. excerpts. Each one is played for 30 seconds. You are then given five seconds of
  38. rest, followed by the next piece. After all excerpts have been played, you
  39. _cannot_ re-listen to them. Press `Submit Answers` to "hand in" your quiz and
  40. view the results.
  41. # Modifying
  42. The music pieces are located in `pieces/`, in `.mp3` format. The file
  43. `config.cfg` contains the information for each excerpt, like so:
  44. [10.mp3]
  45. title: Der Erlkönig
  46. composer: Franz Schubert
  47. era: Romantic
  48. genre: Lied
  49. form: Through-composed
  50. url: http://stuy.enschool.org/music/10_The_Erlking_Erlkonig.mp3
  51. ...and so-on. The section's header is the name of the file in `pieces/` (or
  52. whatever directory you have chosen), and the fields hold the information that
  53. MusicQuizzer will use to generate questions. The exception is the `url` field,
  54. which is the _direct_ URL that MusicQuizzer will use to download the piece if
  55. it does not have a file with that name.
  56. Feel free to rename any of the pieces, delete them, add totally new ones, or
  57. change their information. This program is designed to be customizable.
  58. In the config file, you can also change the length of time each excerpt is
  59. played for, the time between each excerpt, and other things. If an attribute is
  60. not defined for a certain piece, the quizzer will not ask the question in that
  61. excerpt, but the question will remain for other pieces.