I'm trying to combine two band limited sawtooth waves in order to form a square wave. Band-limiting is important, because I want to avoid the harsh sound incurred by aliasing. I'd like to be able to use arbitrary duty cycles with the waveform, specifically the 12.5, 25, 50, 75, that the NES uses. I've researched solutions to this on sites like musicdsp.com, but the introduction of wavetables and the lack of comments in the code makes it very difficult to grasp.
Could anyone provide me with either pseudo code or C code, or point me in the direction of source that accomplishes the above? Ideally, I'd like to understand the whole process, but readable code should be good enough.
I've been stuck on the problem of circumventing the nyquist limit for several months now, and would really appreciate some help.
Could anyone provide me with either pseudo code or C code, or point me in the direction of source that accomplishes the above? Ideally, I'd like to understand the whole process, but readable code should be good enough.
I've been stuck on the problem of circumventing the nyquist limit for several months now, and would really appreciate some help.