Day 10 - Overworld & Dungeon

Ye olde advent of Procedural Music continueth.

I’m supposed to be a game developer, so today’s experiment actually has something to do with games. It plays a simple, randomized 4-bar melody over an 8-bar chord progression, with the option to toggle between major and minor scales (as if the player were moving between the overworld and a dungeon).

(Reload the page to randomize the melody and chord progression)

As always: bugs, comments, etc. to @fenomas. Thanks!