Autosleep Music Timer (iOS) app for $1.99
This unique application on the AppStore, helps you listen to the music you love when going to bed, without worrying about turning it off. Just let yourself fall asleep and "Autosleep Music Timer" will turn off the music for you.
Autosleep Music Timer renders all conventional -time based- timers useless. There is no need to set a specific playback duration. Autosleep Music Timer will know when to turn it off!
Autosleep Music Timer uses advanced signal processing algorithms to detect your sleep phase based on subtle vibrations detected on your iPhone's accelerometer sensor. When it detects that you are in deep sleep, it turns off the music playing application, and puts the iPhone in low power consumption mode.