Assigned Date: Monday, Nov. 14, 2022
Due Date: Monday, Nov. 28
Due Time: 30 mins before class
Using buttons, sliders, and other GUI elements, create a Music Production Controller (MPC). You may use regular controls, however musical controls provide much more flexibility in terms of design – try to use these for a better design / musical outcome.
- MPCs are electronic musical instruments (originally produced by Akai) that feature a grid of buttons that allow a user to playback (trigger) various samples.
- Use an external audio editor (such as Audacity) to capture and manipulate arbitrary audio files and live inputs.
- Then, plan a music performance using the produced audio samples together with your custom MPC.
Write a Jython program that creates an interesting musical performance (your choice). The performance should have a GUI interface (control surface), which allows – as needed – starting, pausing, resuming, stopping, and adjusting the volume / frequency of your audio material.
Design your user interface well. You will be graded on the aesthetics of your GUI, as well as the aesthetics of the music you produce.
Your performance should last about 1-3 minutes (but a little longer, if interesting, is OK). It should consist of smaller audio samples, which are played together at different times to achieve the end result.
The piece should utilize 7 +/- 2 (or so) different WAV files, loaded in as AudioSamples.
- Each WAV file should be relatively short.
- Store your WAV files in the same folder as your program and JEM.
Your program may contain some MIDI material, if you wish, such as percussion (channel 9). But the majority of the piece should be WAV files. Also, see MidiSequence.
Design, design, design – think and draw on paper first. Code later. Return to paper often. Do NOT think while coding… think on paper. It saves time. Remember – “20 hours of coding can save you 2 hours of design”.
Your program should have a meaningful name, e.g., superDuperMusicController.py.
1. Bring to class the following:
- A printout of your Python program.
- Your initial design on paper. Write your name on it.
- Be ready to perform your program in class – part of your grade depends on this.
2. Also, submit on OAKS:
- Your Python (.py) file – e.g. superDuperMusicController.py
- all your audio files, so I can run it on my computer, if I wish.
Follow the documentation instructions from Homework 1.
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.”  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.
Your grade will be based on how well you followed the above instructions, and the depth/quality of your work.
- Cooper, D. and Clancy, M. (1985) “Oh! Pascal”, 2nd ed., W.W. Norton & Company, New York, p. 42.
This assignment has the following objectives:
- Manipulating audio samples in Python.
- Creating an interesting performance out of smaller elements.
- Designing a GUI with enough controls to carry out interesting tasks.
- Implementing callback functions.
- Use various data types and API calls to achieve a desired programming task (algorithmic design).
- Use predefined classes in program development (object-based programming).