Puredata programming exercises 2

Exercise 2a - compu keys (difficulty 1)

Make a simple musical instrument that plays a scale from C (midi 64) to F# (midi 70) on the keys of the computer keyboard ( eg along bottom row Z, X, C, V, B, N, M )

Exercise 2b - Theremin instrument (difficulty 2)

A simple "theramin" instrument produces a sine wave whose amplitude and frequency are variable. The frequency range of the sinewave should be between 20Hz and 3kHz, and its loudness should vary between zero and about 90dB. Create a Puredata patch that uses the mouse as an input device to create this effect.

Exercise 2c - Random melody machine (difficulty 4)

Make a simple synthesiser and sequencer that generates random melodies. You should be able to specify a key or rules to choose the notes. Melody sequences should also contain rests.