Re:Variable duty cycle square waves with the Web Audio API
by Dave_Rosenthal on Monday April 07, 2025 @03:50PM
(#43615207)
I was curious to see how audible square wave duty cycle would be (I figured not much) but sadly the audio examples are clearly broken on this page--choosing the same one multiple times gives totally different sounds.
[ Parent
| on HN ]
Re:Variable duty cycle square waves with the Web Audio API
by TonyTrapp on Monday April 07, 2025 @03:55PM
(#43615257)
Changing the duty cycle of a square wave is called Pulse Width Modulation and is an extremely audible and iconic sound. If you have ever heared music any on the Commodore 64, you will familiar with its sound. PWM is also available in many professional synthesizers of the same era.