In AS3, I made a sound/music engine on top of their excellent sound API, then tacked on other things like simple graphics and then controls, so I accidentally made a game engine out of a sound/synth project.
Good ole days of AS3, still ahead of their time.
Really wish there was an AS3 WASM or something