Thanks for taking the time to play my game and to leave a comment.
I'm glad that the music sounded good to you. I realised early on that if the fruit ordering were to be completely random, the resulting melody would have sounded awful.
To help mitigate this, I learned about chord progressions so that the fruit/chord generation would select something that would sound logically follow the previous chord. Each fruit has one specific chord associated with it, so it boiled down to finding chord progressions that sound nice and would fit the given combination of fruits per difficulty. It was interesting and fun doing this game jam as I got to to learn more about musical side of things.