A while ago I started a repository, in which I wrote code to write a riff-wave file with a sine wave in it. My idea is: "All sound is, is waves. Incredibly many overlapping waves maybe, but waves. Using functions I should be able to implement things like fade-in, fade-out, increase frequency, etc, that I usually do using Audacity. And then I should be able to make small command line tools out of those and do fun effects on wave files."
Perhaps my thoughts are naive, as I have no background in sound/music theory and probably lack some fundamental mathematics for sound, but: What would be a good book to get more into this sound synthesis stuff, as a software engineer?