A good time to know Verilog.
153 karma · joined March 10, 2014
Furthermore, the "proper" way would pass the sound through an anti-alaising filter before creating a higher pitch tone. However, at 48kHz (as in the post), this isn't really an issue for audio.
Sell it to me.