Randomly generates musical 'phrases' of any length.
Notes in the phrases are chosen from a scale (within a user-defined octave range) that can be selected or also randomly generated. Note velocities can also be randomly assigned.
DISCLAIMER: This script was written in about 20 minutes during a music tech lesson, so definitely don't expect beautifully elegant code.
- chromatic
- major
- natural minor
- harmonic minor
- major pentatonic
- minor pentatonic
- blues
- whole tone
- octaves
This project makes use of the midiutil Python library.