That was so much fun to play!!
I can't even comprehend how you managed to get the music to feel so good and work well with so many elements generating different music.
Amazing job!
* All frogs were pet before the making of this rating ^^
Without getting into the details, I used two plugins for the generative music:
There's a bit of music theory that I'll skip, but from there the basic idea is that I have a list of notes ("G4", "A4", etc), and when an event happens I pick one of them and play it with the desired instrument. Then there's some tweaks to avoid playing the same note twice consecutively, or giving random notes more or less chance to be played depending on the current bar.
I'm happy that you enjoyed the game. Thank you for your comment!