A potentiometer on a guitar adjusts volume or tone by varying electrical resistance as you turn the knob.