Generate Chromatic Scale in Circle of Fifths – Bash Script

This tutorial provides a Bash script that defines a function to generate the chromatic scale in all chords of the circle of fifths in a standard MIDI file. The script creates an empty MIDI file and writes the necessary headers. It then loops through each chord in the circle of fifths and each note in the chromatic scale, calculating the MIDI note number and writing the MIDI note event to the file. Finally, it adds a delay event between chords and writes the end of track event. Follow the steps below to implement this functionality in your Bash script.

Read more here: Source link