Recently, I discovered a very nice blog post by Leo Cavalcante about trying to capture some musical concepts in F#: Music with F#: The Language and the Note. This prompted me to experiment a bit on my own. What follows is a slightly chaotic record of me trying to capture some basic concepts of music theory in the F# type system. The ultimate goal of this exercise was to devise an easy way to generate chord progressions for any key and mode/scale and export them into Sonic Pi.
Generating chord progressions in F#
This post is part of the F# Advent Calendar 2022
@emneb on 2022-12-10
f# .net music theory