Arduino Guitar Pedal Help please??

Hey, I'm making a arduino guitar pedal using the arduino uno which I'm trying to implement a potentiometer and a push button. Can anyone help me with the code to simply distort the sound using the potentiometer?