If you’re interested, how do people know how to “add sounds”, there’s a special idea in maths for handling that (and much more, like multiplying polynomials!). It’s called “Fourier Transformation” and it’s really interesting!
I higly recommend watching [this](https://youtu.be/spUNpyF58BY) video for understanding it.
For understanding how it works in the computer, as an algorithm, I found [this lovely](https://youtu.be/h7apO7q16V0) video.
Latest Answers