(noob) controlling piezo with potentiometer

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.