I get musical ideas that pop in my head all the time. If driving, I grab my cell phone and turn on video recording, and simply sing the idea into the phone - it requires no hands away from driving to do, so not a safety issue. I then transfer that to the computer at first opportunity, then will play something into Sonar quickly just to capture that little snippet.
I do the above many times a day, and have a growing army of little bitty 'snippet' projects.
I will periodically cruise through those snippet projects, and will then flesh them out, a bit at a time, based on that little melody or rhythm that I first started with.
It appears my steering wheel is quite the percussive instrument, using palms, fingers, keys, whatevers.
As far as using Sonar directly for song writing, I generally have some sort of idea in mind when I am actually going to set up a project in Sonar, so I start by loading whatever sorts of instruments I 'know' I am hearing for a particular song, and then also load up one of many drum 'track templates' I have, for the kind of kit that I hear in my head for what I am about to capture.
I usually get the meter changes in place first, as I tend to write prog tunes that have multiple meter changes - measures of 4/4, 5/4, 7/8, 9/8, 11/8, 13/16, 19/16 - lots of interchanging sections. These I always set up first, so that I don't have to mess around with all of that stuff after recording tracks.
Then, I normally lay down some sort of 'placeholder' tracks - usually some kind of keyboard pad sound, but sometimes bass, which I do just so I have something to play against, and then I will use various instruments to 'play around' a given section, so that what is being played is done over some marginal structure - I like to write parts for different instruments so that they are not competing for the same frequency ranges, so that each instrument can be heard. For ME, keeping some sort of backing sound helps me to keep the 'real' parts more sparse, but still able to hear a semi-full part.
I then sort of run a concept through whatever its logical/emotional conclusion is, and then get a clean 'break', and come at it again laterm with an eye/ear to develop in a new direction - sometimes complimentary, sometimes as counterpoint, just depends on the mood - how much coffee - donuts, etc.
Sometimes, I take a listen through snippets I have already created, as sometimes one or more of those can be a real interesting insertion into a new project - giving me a direction that would not have likely come from trying to think of a part right there on the spot. That's the beauty of having snippets. Lots of folks have done that sort of thing over the decades - for me, that works well.
So, at the end of it all, Sonar is a big scratch pad, with LOTS of really nice ways to build things, save them off, recall them, and then shape them into something that somehow all flows together. It's the BEST recording software program for matching how MY brain approaches creating music, and that is why I have used Sonar for well over 20 years.
Bob Bone