How it works:
This circuit is based around the 555 timer circuit, used as an astable (free running) oscillator. The frequency (pitch) of the tone is set by the resistors and capacitors in the left side of the circuit. The first one is a potentiometer (variable resistor), this is our pitch control, which is basically all the external components you need. The capacitor to the far left is to reduce as much noise or undesired operation of the potentiometer, getting a smooth pitch change when adjusting.
You can find the timer's datasheet by following the link: 555 timer