Procedural Music Generation and Adaptation Based on Game State