Bill Manaris : Spring 2016 / CITA 180 Homework 4

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 may be musical or otherwise - your choice.


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 use AudioSample to create a MIDI sampler... Many other possibilities exist.

Have fun!

Your goal is to build an interesting performance. Keep Interest Curves in mind. 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 as needed.

The performance should last between 1 and 3 minutes.

NOTE: It will help you greatly to have a paper description of your performance to assist you while performing. What happens first, what second? How to you finish? 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 focus on creating a memorable experience.


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]

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:

  1. Hand in a printout of your Python program in class on the due date.
  2. Perform what you created to your classmates.
  3. Upload your program file on all needed files, e.g., audio files, etc. on OAKS.
    • Make sure you provide all needed files. I should be able to run your complete program from OAKS.
    • Also, give your program and files meaningful names, e.g.,, etc.


Your grade will be based on how well you followed the above instructions, and the depth/quality of your work.

Learning Objectives

This assignment has the following objectives:

Also how to:


  1. Cooper, D. and Clancy, M. (1985) "Oh! Pascal", 2nd ed., W.W. Norton & Company, New York, p. 42.
(Printable View of