Well, back in the day, when Z80 systems were still a thing, I actually built a soundcard for one such system. Wavetable synthesis, DAC-controlled envelope, did the whole nine yards from scratch, starting with circuit diagrams drawn on the proverbial napkin. Ended up using it to make theremin-like sounds. I was still in school and it was a fun project.