Songs for sleeping

As I write this, Berry is fast asleep next to me. It took a long time, and a fair amount of effort, to get her to sleep, as has become the routine everyday. Finally, she fell asleep as Pink Floyd’s Comfortably Numb was playing. This was no coincidence. This is part of a careful sleeping routine I’ve developed over the last month.

It started with a bit of what I can describe as “reinforcement learning”. We were on the way to the airport sometime last month and Berry was getting cranky in the cab, so I started singing to her. On a whim I started singing Pink Floyd songs (maybe because I know the lyrics of a lot of them). She passed out halfway through Wish You Were Here. A couple of hours later on the flight, she felt drowsy during the same song, and then slept when I started singing Comfortably Numb.

So every time I found that she would sleep to a particular song, I started singing that the next time I was putting her to sleep. Obviously it didn’t work like that – her falling asleep was a random event, which I chose to infer was a cause of my singing. And I’m someone who gives lectures on not mistaking correlation for causation.

Singing got tiring, so soon enough I had created a playlist. The playlist to which she invariably falls asleep every day nowadays is called “lullabies“.

Here is what it looks like.

Now, you might just think that it’s a random list of Pink Floyd songs, with one LedZep song thrown in. It’s not. The songs have all been carefully selected.

The first set of songs have been chosen because they are heavy on lyrics, don’t have long instrumentals and are easy to sing along to. These are songs that play when Berry is about to fall asleep, and I sing them while patting her. And invariably she falls asleep during this time.

The next few songs are long soothing songs, that will keep her asleep until she gets into deep sleep. As I write this, Atom Heart Mother is playing.

But getting Berry to sleep is not easy. I don’t start the evening with these lullabies – they come in only when I know that Berry is sufficiently sleepy and will sleep in the next 10-15 minutes (like the closer in Baseball). When she comes into the bedroom, I start with this playlist that I created a couple of months back, and which I had then named as “Berry’s Education“. 

As you can see, Black Sabbath’s Iron Man heads this list. It is Berry’s favourite song. In fact, when she gets on to the bed, she says “has he lost his mind, appa”.

This playlist is not intended for sleeping, and I randomly choose a few songs to play. When Berry gets into the next stage of her slumber, where she is now ready to sleep, but not sleepy enough, she needs some lullabies. And it’s the time for Iron Man again, except this time it’s the version by RockaBye Baby.

This is the song she used to fall asleep to when she was a baby, from the time when she was barely a couple of days old. And from there I let the album play for a while until she is really ready to sleep. Which is when the lullabies playlist takes over.

As you might imagine, having multiple playlists is a pain. I normally use the kinda old iPad4 to play, and changing playlists means entering my passcode, going up one folder and then going into another playlist. You might wonder why I haven’t created one integrated playlist.

The reason is randomness, on two counts. The amount of time Berry takes to pass each stage of sleepiness is variable. So I don’t know how long I will have to play each kind of music. Also, she is moody and the way she reacts to each kind of music is a bit random. So I need to switch back and forth between the kinds of music, and so having multiple playlists is better.

On good days, I will have my phone with me, which makes it easier to switch playlists (one hand operation, touch ID to login etc) – though it’s invariably the iPad that plays the music.

So as you might have figured out, putting babies to sleep is not an easy task, which is why I’m sharing my method with you, in the hope that it might help you. What do you do to make your baby sleep?

 

Dreaming on about machine learning

I don’t know if I’ve written about this before (that might explain how I crossed 2000 blogposts last year – multiple posts about the same thing), but anyway – I’m writing this listening to Aerosmith’s Dream On.

I don’t recall when the first time was that I heard the song, but I somehow decided that it sounded like Led Zeppelin. It was before 2006, so I had no access to services such as Shazam to search effectively. So for a long time I continued to believe it was by Led Zep, and kept going through their archives to locate the song.

And then in 2006, Pandora happened. It became my full time work time listening (bless those offshored offices with fast internet and US proxies). I would seed stations with songs I liked (back then there was no option to directly play songs you liked – you could only seed stations). I discovered plenty of awesome music that way.

And then one day I had put on a Led Zeppelin station and started work. The first song was by Led Zeppelin itself. And then came Dream On. And I figured it was a song by Aerosmith. While I chided myself for not having identified the band correctly, I was happy that I hadn’t been that wrong – given that Pandora uses machine learning on song patterns to identify similar songs, that Dream On had appeared in a LedZep playlist meant that I hadn’t been too far off identifying it with that band.

Ten years on, I’m not sure why I thought Dream On was by Led Zeppelin – I don’t see any similarities any more. But maybe the algorithms know better!