Forums > MaxMSP

Aliasing problem in generating a sawtooth wave via additive synthesis w cycle~

Jan 18 2010 | 10:41 pm


I was playing around with additively creating a sawtooth wave by summing cycle~’s with the appropriate relative freq and amp to get the saw.

It’s all fine and dandy except I am getting aliasing when my partials exceed 20k. I tried using lores~ but didn’t work? I can seem to find a viable filter in msp. Any suggestions?

Also was wondering, I couldn’tfor the life of me get scope~ to show the saw summing as I was adding my partials – it looked like a funny pulse thing, but I checked in the spectroscope and it’s positively a saw.

here’s the patch

— Pasted Max Patch, click to expand. —


Jan 18 2010 | 11:26 pm

For a band-limited sawtooth wave, try saw~. Adding sinusoids to get a sawtooth will only look "correct" (sawtoothy) in the scope~ if the sinusoids all have the same phase offset, but it’ll still sound like a sawtooth even if they’re out of phase.

Jan 19 2010 | 12:02 am

I have an example, called "Partial Workshop," that I wrote _many_ years ago to illustrate creating waveforms out of partials. It can be found here:

Jan 19 2010 | 12:37 pm

have you tried using a somewhat bandlimited version of the waveform?

instead of a perfect sawtooth, use a 1. 0.5 0. transition and one point and
see if there is a difference.


Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP