Insert the Sonar 4 distribution CD-ROM into your drive, as this is where the encoder profiles dwell. Don't let it auto-run; instead, Explore the CD and open the Utilities folder. Inside that, open the External Encoder Profiles folder.
Now double-click on any of the encoder options you want to add (for example, LAME MP3 High Quality Stereo.reg). You'll be asked if you want to add this information to the registry. You can now tremble in fear for a bit, because you're adding something to the registry, but go ahead and click on 'Yes' — everything should go smoothly, and you'll be informed that the profile was added.
Next, look in the Shared Utilities folder (in C:\Program Files\Cakewalk), and double-click on the EncoderConfig.exe program. In the 'Friendly Name' field, the Profile you just installed (LAME MP3 High Quality Stereo) should be listed; select it. In the 'Path' field, delete the default path and enter the path to the LAME encoder folder installed on your computer. I put the LAME folder within Shared Utilities, but it can sit anywhere.
path, then click on 'Save'. If you don't save, Sonar won't be able to launch the encoder.
Finally, click on 'Close', to close EncoderConfig.exe.
!IMPORTANT!
I found out - ON MY OWN ( :-) ) - how to enter the presets that Lame gives you. Lame doesnt tell you were to put them, so do this:
Go to start > run > and enter regedit
Go to HKEY_CLASSES_ROOT\CakewalkAudioEncoders\"CLICK ON ONE OF THE FOLDERS"
Where it says "CommandLine" enter whatever presets the Lame instructions give you.
Click HERE for LAME Profiles