Other
This page is just to collect things that aren't directly related to my research.
Finding borrowed chords (music theory)
This is a very small project i worked on in my spare time to learn more Python and music.
When playing music, the goal is usually to play combinations of chords that sound "good". When learning music theory, you learn the major/minor scales which unlocks a framework in which to play chords from that sound "good". However, from time to time you'd come across a chord progression from a song that is off-key but still sounded "good". This can sometimes be explained by borrowed chords (amongst other things), which is a chord that is taken from a parallel mode (scales with the same root). This opens a very large but finite set of non-diatonic chords to add to a chord progression. But what are all these chords?
To the right is a flask web app that's hosted on pythonanywhere.com that runs a Python script to calculate and print out possible borrowed chords of a given key. Enter a key and choose what sort of chord extensions you want and it will display the chords of the modes in that key. It's also supposed to play the scales using the midi package when run locally, but I couldn't figure out how to do that through a web app.