This article demonstrates how to generate a quasi-infinite
number of sounds using math formulas. Also, a sample program is
provided to allow you to do experimentation by your own. Have
great times! A sound is basically a sine wave traveling in the
air. It is characterized by a power and a frequency. The power
determines the sound loudness and the frequency determines its
pitch. If you are not familiar with this phenomenon, I propose
you to start the sample program right now! First, try some
variant of “sin(x*t)”, beginning with x equal to 20 and
increasing it progressively by step of 20. In that expression,
“x” represents the frequency in Hertz and “t” is the time
variable, varying from 0 to 2pi rad in one second. Maybe with x
= 20 you will hear nothing. If this is the case, don’t get mad,
it’s just that your speakers can’t handle a so low frequency.
(By the way, this is a good method to test your speakers’
quality.) For reference, humans generally can hear sine waves
between 30Hz to 20000Hz. In the digital w