Fritzing Creator Kit - #14 Synthesizer
We can use a Piezo speaker to generate sounds. It converts electrical frequencies into sound waves. Different sound waves are produced by rapidly switching the voltage on and off (pulse).
The program text processes two parameters, which are read from two potentiometers. One potentiometer affects the pitch level, the other the duratioin of a continuous repeated loop.