Since I got the idea that quickcheck can be used to generate things, I wanted to use it for something about music. I found by this post: http://chromaticleaves.com/posts/generate-user-data-quickcheck.html and it seems to be a good starting point.
I just did something very easy to change the codes, but I think it’s quite a nice learning experience for Haskell beginners like me.
The output is a tuple with the root note and the chord quality. There hasn’t been any restriction implemented in this so the chord sequence doesn’t really make sense musically. Something to play with in the future!
So satisfying when you ghci it and it just works!!