You get ideas from daydreaming. You get ideas from being bored. You get ideas all the time. The only difference between writers and other people is we notice when we're doing it.
Applause that comes thundering with such force you might think the audience merely suffers the music as an excuse for its ovations.