Variable resistors...fapfapfap...
Who knew that the pitch of a noise making device was determined by a resistor? Change the resistance, change the pitch.