Built with a CMOS hex inverter.
This takes two inputs and rapidly switches between them. The knob controls speed.
Demo with two inputs:
Demo with one input:
Demo with no inputs (Using it as an oscillator):
And here's the schematic. The value of the potentiometer is unknown. This circuit could be possibly improved with an amplifier because the output is very quiet.