To record the sound of a guitar into a computer or CD, connect a guitar amplifier's line out to the line in of the sound card. Use any sound recording software, including the basic program provided by Microsoft with Windows. For those without a guitar amp or using an acoustic guitar, a microphone is necessary to capture the sound, which can then be connected to the computer in the same manner.