To work on this exercise, you should first work through the Lecture on Music Representations.
This exercise will make heavy use of the Preparation Course Python (PCP) and the Fundamentals of Music Processing (FMP) notebooks. Thus, we require you to run the PCP notebook environment and the FMP notebook environment. Follow the links and set them up on your local machine.
Both PCP and FMP use Jupyter, so you can work on all assignments through your browser. You may optionally use an integrated development environment like PyCharm, which can be more convenient to use.
Finally, please take the opportunity to review your programming skills. Basic knowledge of Python is required for the remainder of this class. You should be confident in applying the concepts presented in units 1 to 5 of PCP.
Throughout the exercise, we will make use of the PCP and FMP notebooks. Please, always feel encouraged to actively work through these notebooks, play around with different parameters, other input files etc.! That is the best way to learn.
Go through the FMP Notebook on Musical Notes and Pitches and understand the meaning of the parameters (such as Fs
, pitches
,...). In particular:
Go through the FMP notebook on Frequency and Pitch and write the following functions:
Understand the concept of Shepard tones by going through the FMP Notebook on Chroma and Shepard Tones. Answer the following questions:
Understand how to sonify pitch-based representations by going through the corresponding part in the FMP notebook on Sonification. The notebook on the Harmonic Series may be useful to understand why we superimpose certain sinusoids in the sonification. Then,
We will now employ the concepts you have learned to recreate the following YouTube video:
import IPython.display as ipd
ipd.display(ipd.YouTubeVideo('A41CITk85jk'))
Listen to the start and the end of the YouTube video. Even though the music seems to be "rising" constantly, the start and end match up perfectly!
The piece by Johann Sebastian Bach that is being played here ends one whole tone above the tone where it started. Therefore, after six repetitions, the music arrives at an octave above the tone where it started. In the YouTube video, shepard tones are additionally used to match the frequencies at the start and after six repetitions. This creates the impression of a "neverending canon".
There are many resources on the web where you can download MIDI files, which encode symbolic music. See the FMP notebook on MIDI for more information on how to parse MIDI files. Find a MIDI of your favorite song and sonify it using the methods you have learned thus far.