This article is from the Music composition FAQ, by Craig Latta Craig.Latta@NetJam.ORG with numerous contributions by others.
From Nathan Torkington <gnat@kauri.vuw.ac.nz>:
Obviously there isn't one true method of obtaining inspiration
which will enable everyone to become Bach, but here are some tricks
that have worked for people on rec.music.compose in the past:
- walking. The rhythm of walking seems to help people get a
concrete foundation to hum to.
- other music. Listen to things that seem incomplete to you, and
try and arrange it how it should have sounded.
- theory exercises. Play with some exercises in theory, and maybe
something that is pleasant will jump out at you.
 
Continue to: