Adaptive Music for Affect Improvement (AMAI) is a music generation and playback system with the goal of steering the listener toward a state of more positive affect. AMAI utilizes techniques from game music in order to adjust elements of the music being heard; such adjustments are made adaptively in response to the valence levels of the listener as measured via facial expression and emotion detection.