Sound Generation

actually i didn't think about it before. Thanks!

I went to take a look now and i saw there is a Tone Generation Library. It seems to me with it we are able to produce certain frequencies, like for instance the musical notes we are used to.
But would it be possible to make it so that the frequency (pitch) would be controlled by a potentiometer? That would be great. Any ideas on how to do it?

I am trying to achieve somethings like this:

i also saw that there are several libraries about LCDs.