I’m in the middle of writing a historical novel. I listen to Frank Sinatra, Count Basie, Chet Baker, Miles Davis and ohters. The Great American Songbook is so rich with great music that it keeps me going. Toe tapping while I type, and ocassionaly singing along to something familiar, keeps the creative juices flowing for me.
Hope this helps.