Most synthesizers can generate the common standard types of waveforms, such as sine, triangle, square, sawtooth, pulse, noise, etc. And these can be used to create various types of timbre in a synthesized tone.
Today I found myself wondering how to generate specific custom waveforms, such as the one illustrated below:

It's easy to see that this is a pairing of a square wave and a triangle wave with specific differences in amplitude. Of course this would result in a tone sounding different than just a square wave, or just a triangle wave, or any blending of the two. This is a unique waveform with its own unique timbre.
For such a fundamental sort of audio editing, I was surprised that I couldn't think of any way to craft custom tones like this.
Web searches have led me to several solutions that seemed promising at first, but in the end did not allow quite this level of customization.
What are some methods for generating an audio tone from a specific graphed waveform?
Thanks in advance for any help.




