Another fine text on this subject I can recommend (at a somewhat higher level, and not provided for free) is The Computer Music Tutorial:
https://mitpress.mit.edu/9780262044912/the-computer-music-tu...
I suggest having some kind of sequencer and synthesizers (one subtractive, one FM) available to play with while reading. Free VSTs in the free Reaper DAW are a fine starting point.