I created a Music generation library for games, that works in web and godot, and adapts the music continuously to the mood/stage of the game.
https://gamestruments.gurisitos.games
https://gamestruments.gurisitos.games