Assigned Date: Tuesday, Mar. 22, 2016
Due Date: Tuesday, Mar. 29, 2016
Due Time: 2:00 PM
Last modified on March 25, 2016, at 09:01 AM (see updates)
Connect a MIDI controller to your code and use it to perform something interesting. This performance be musical or otherwise - your decision.
Using the provided MIDI library, connect and extract data from a MIDI controller.
Your goal is to create an interesting performance.
If musical, your performance could consist of pre-constructed excerpts of music (the material and style are up to you). For instance, you could have a few phrases, sequences of chords, and/or drum patterns. You could reconstruct an existing piece that you like (i.e., a cover). Or you could construct a piece that's mainly percussive (combining different drums patterns). Or, ... .
Your goal is to generate an interesting result.
As you are designing your performance, you should keep in mind the discussion on Interest Curves. I.e., your performance should engage your audience at different points. Also, it should have a beginning, middle, and end, with some material that's repeated appropriately.
The performance should last between 1 and 3 minutes.
NOTE: It is strongly suggested to have a paper description of your piece to assist you while performing. For instance, you could state what block of code you will play first, second, at what time, etc., so that you can remember during the performance. How you notate this is up to you. Anything that makes sense is fine. This way you can free your mind from remembering the order of things and instead you can focus on creating a memorable performance.
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." 
You should create comments to describe the different blocks of code and the function they play in your performance.
You will submit your assignment by both handing in a printout of your program in class, and on-line via OAKS. Be prepared to perform your music in class. Your submission consists of:
- Hand in a printout of your Python program in class on the due date.
- Perform what you created to your classmates.
- Upload your program file on OAKS. Give your program a meaningful name, e.g., furElise.py.
Your grade will be based on how well you followed the above instructions, and the depth/quality of your work.
This assignment has the following objectives:
- Apply selection (if statements), relational operators, logical operators
- Apply functions
- Understand and use function callbacks
Also how to:
- Use the MIDI interface to extract data from MIDI devices
- Connect MIDI controllers to interesting functionality
- Cooper, D. and Clancy, M. (1985) "Oh! Pascal", 2nd ed., W.W. Norton & Company, New York, p. 42.