Objective

Use Pure Data to play a sequence with frequences (pitches) and durations (rhythm).

The melody is represented as a sequence of frequencies, stored in a table as floats between 0-127.
Each note in the melody has a specific duration, stored in another table as floats between 0-1000 (ms).

Follow the steps; get the patch working; and begin making changes, variations, additions.

Consider the following important concepts, implications and questions of this example:

  1. We have added duration to each note in addition to its frequency. What other parameters can make the melody more expressive?
  2. Imagine each note in the melody as a symbol for some physical event in the real world; this melodic sequencer can easily by employed to sequence actuation of motors, lights, servos, etc.

Steps and observations

  1. Open the 1.c.iii.2_music-rhythm.pd patch in Pd-extended.
  2. Follow the institutions in the patch.

Comments

For a challenge, try creating a series of more exciting melodies and a way to switch back and forth among them with the press of a key on the keyboard (check out the key and keyup objects)