A brushless drone motor has three windings (phases) driven by three half-bridges. The ESC does not apply one voltage to one wire and ground to another: it switches the connections around the motor so the stator's magnetic field rotates and the permanent-magnet rotor is dragged along with it.
How fast the field rotates is the commutation. In 6-step drive the ESC energises two phases at a time and advances to the next pair every 60° of electrical angle; the current in each phase is a flat-topped 120° block. In sinusoidal (field-oriented) drive all three phases get smoothly varying currents, which gives less torque ripple and a quieter motor.
The electrical frequency is the pole pairs times the mechanical speed. A 7-pole-pair motor spinning at 20 000 rpm has an electrical frequency of about 2 300 Hz, and six commutations per electrical revolution, so the whine you hear tracks RPM.
Beeps are phase control, not a buzzer. At power-up the ESC drives the same three phases at an audible frequency, open-loop and without position feedback. The windings vibrate the stator and bell and the motor becomes a speaker. The sequence of tones is the ESC's status message (cell count, protocol, ready). Switch on Listen and press Play startup tones to hear it while the bridge switches through each tone.