[music-dsp] What is the waveform with even harmonics called

Jeremy Shaw jeremy at n-heptane.com
Mon Jun 15 16:03:25 EDT 2009


What is the name of the waveform which has even harmonics which fall
off at 6dB/octave?

By comparison:

 sawtooth wave = even + odd harmonics falling off at 6dB/octave
 square        = odd harmonics falling off at 6dB/octave
 triangle wave = odd harmonics falling off at 12dB/octave

You can see what it looks like using this matlab/octave code:

# even wave
N = 2000;
t = ([0:1000] / 1000) * 4 * pi;
f = zeros (1,1001);
for k = [1,(1:2:N)+1]
  f = f + sin (k * t) / k;
f = f * 0.88678;
grid on
axis normal

Are there any nifty ways to generate this waveform efficiently?

- jeremy

More information about the music-dsp mailing list