(noob) controlling piezo with potentiometer

right ive got daisy bell running via a piezo, simple enough, but i want to control the frametime using the potentiometer so i can speed up/slow down the speed my badly edited/programmed melody is playing back at. Ive been trying to squeeze the analogue input code in there but im very much a coding noob and cannot figure wtf is meant to go where. Any help appreciated, you can have my last rollo :smiley:

right ive got daisy bell running via a piezo

Say what?

but i want to control the frametime using the potentiometer

Frame time?

Ive been trying to squeeze the analogue input code in there

In where?

but im very much a coding noob and cannot figure wtf is meant to go where.

Clearly, it goes right after line 56.

XD

daisy bell, you know, that annoying song about bicycles made for two. playing back via one of these
http://www.ecs.umass.edu/ece/m5/images/Piezo_Speaker_Breadboard_S.jpg

perhaps i was a little vague :wink: nevermind, ill figure it out

Ok. Now we know what you are trying to do, post your code so we can see what needs changing.