Bach-in-a-Box A Python program to generate music and tuning systems. Dependencies: Python 3 (Developed using Python 3.8, but should work on other versions) Music21 PySide6 Mido SuperCollider pygame Licensing: Code licensed under GNU Affero GPL v3 Art of Fugue example midi converted from a score by Pikabolt licensed under Creative Commons Zero. Logo from gh-pages branch made from a public domain painting of Bach and an image by Svengraph licensed under Creative Commons Attribution 3.0 Unported Current Features: Generates random midi files Converts midi files to dectalk (inspired by 7coil/midi-to-dectalk) Planned Features: UI in PySide6 Use of scipy and numpy 100% designed for Linux Less unneeded code and better performance Resources: Xen Wiki FJS Xen Wiki FJS Counterpoint Maqam Counterpoint Just Intonation Canon Pick key and number of measures to lead First note in leader is the tonic Make catchy theme to lead Copy lead to second voice, transposed by octave Harmonize the leader to the copied lead Thirds, fifths, and sixths are harmonious Fourths are dissonant No parallel fifths, avoid unison Rinse and Repeat Jokes: The Well Justified Clavier Nobody expects the Spanish Intonation