Adaptive metronome as lullaby

I have a suggestion for lullaby. There is a lot of research about the use of a metronome to stimulate rhythmic brain wave activity.

I think it would be great to have a lullaby that would begin a metronomic tick slowly as the user is falling asleep and then increase or decrease the tempo based upon what sleep phase the user is currently experiencing