To answer the original question, yes there are ways to do this with Sonar, with other software products (vsts). Don't know if there is a "free" solution that works (Synodeia is free, does it work?), but there's Jam Origin, Intelliscore Ensemble (convincing video demo on utoob), maybe others, although there's a bunch of discontinued products if you search (looks suspiciously like the developers threw their hands up in the air). As other comments above say, you're likely to be disappointed looking at a software solution. Like cutthroughrecordings says in the video, latency is an issue and no dynamics. You have to play around with eliminating fret noises too. For non-live transcribing, maybe. For live performance? Meh.
(Now, this isn't necessarily a Sonar solution, but I've heard that there are some IOS apps that have made significant headway in this area.)
One has to figure that after years of trying the software audio-to-midi route, the best solutions are still hardware. Here's an actual quote from an old (2007) harmony central forum post: "
Mr. Anderton, i was wondering why you never make a Realtime Guitar to MIDI app/plugin ?" I'm guessing one reason is because it's darn hard! Consider this too, keyboard players are willing to walk away from their beloved baby grands to play midi controller keyboards. Why? Because piano-audio-to-midi (via software) doesn't work well either. That is, it's not just a guitar issue, it's an every-instrument, including voice, issue. Keyboard players just got over it and went with the hardware "work-around" (midi-controller keyboards).
I do use a Godin guitar with the built-in midi (13-pin as mentioned above), and I'm pretty happy with it. If I want to transcribe something, I just record at a slower tempo to allow my limited playing skills to be cleaner! But I don't have to slow down much and I can play all six strings at once and they all get put on the Piano Roll (or, ugh, Staff View). I also use the Godin live a lot and I get pretty accurate results even when playing fast and sloppy (my signature style--uh, the sloppy, not the fast). Actually, for some live work I have the guitar controlling a soft synth in Sonar AND also, in parallel, a computer doing real-time animation (
www.voxspectra.com if you are curious what it looks/sounds like). In
that live situation, there is so much to worry about, a few fluffed notes are way low on my list!