sine, wave, saw-tooth, triangle wave generator code needed

I'm looking for the simplest way to make the 4 wave forms separately with only one potentiometer instead of two. My major problem is i don't understand code very well. I'm extremely new and basicly need someone to hold my hand the whole way through this.