That's a cool idea. Something that was suggested to me with Flowful was to use some sort of body triggers, perhaps from facial recgonition through your device's camera, to determine when the user was becoming less focused. The music could then adapt to help them get back on track.
So many cool possibilities.