Assigned Date: Friday, Sep. 10
Due Date: Friday, Sep. 17
Due Time: 30 mins before class
Assignment
Write a Jython program that generates an interesting piece of music.
The piece should contain at least three Parts with different instruments.
It is OK to add percussion (drums), if you wish.
Submissions
Do all three:
- Upload a PDF (or photo from your smartphone) with the music score of the melody, together with your pencil writings of Python note pitches and durations (see Fig. 2.3 in textbook, as an example).
- Upload your program file on OAKS.
- Be ready to perform it in class, on the due date.
Your program should have a meaningful name, e.g., stairwayToHeaven.py.
Program Documentation
Follow the documentation instructions from Homework 1. In particular, your header documentation should:
- mention the name of the piece and the composer / band where it comes from, and,
- if you used a score available online, include the URL where the score can be found.
Remember, the Golden Rule of Style: “A program should be as easy for a human being to read and understand as it is for a computer to execute.” [1] Your code should have general comments at the top, which explain what the program does. You should comment all variables, obscure statements, and blocks of code.
Follow the textbook examples on how to write comments.
Grading
Your grade will be based on how well you followed the above instructions, and the depth/quality of your work.
Reference
- Cooper, D. and Clancy, M. (1985) “Oh! Pascal”, 2nd ed., W.W. Norton & Company, New York, p. 42.