Alex loves the Beatles song “Yesterday.” He loves its gorgeous melody, wonderful orchestration, and there’s just something so understated and beautiful about the words to the song. But “Yesterday, all my troubles seemed so far away…” those weren’t the original lyrics. It started off as, “Scrambled eggs, oh my baby how I love your legs.”

Paul McCartney performed a version with Jimmy Fallon and the Roots on Late Night in 2010 and back in1995 in an interview from The Beatles Anthology explained how this happened.

I used to live in this little flat up at the top of a house in a little room, and I had a piano by the bed. And I just woke up one morning with this tune in my head. So I went to the piano and found the chords to it. It was like in G, F#m7, sort of B and that.

And I thought, I don’t know this tune, or do I? It’s like an old jazz tune, or something? ‘Cause my dad used to know a lot of old jazz stuff. Maybe I just remembered it or something. And then I just hawked it round all my friends and stuff, and said, “What’s this? It’s gotta be something.” It’s like a good little tune and i couldn’t have written it cuz I just dreamed it. You don’t get that lucky.

Whether it was luck or something else, McCartney wrote “Yesterday” in a dream.

This episode explores the phenomenon of musicians writing songs in their dreams, how it started happening to Alex and asks the questions is this for real? How does it work? And, Is it something you can train yourself to do? Listen to the episode above and join the conversation. Have songs popped into your dreams? Tweet @hearpitch and let us know!