Jump to content

Constant spectrum melody: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Line 31: Line 31:
* [[Spectral music]]
* [[Spectral music]]
* [[Auditory illusion]]
* [[Auditory illusion]]
* [[Musical acoustics]]


[[Category:Perception]]
[[Category:Perception]]

Revision as of 11:15, 13 May 2013

A constant timbre at a constant pitch is characterized by a spectrum. Along a piece of music, the spectrum measured within a narrow time window varies with the melody and the possible effects of instruments. Therefore, it may seem paradoxical that a constant spectrum can be perceived as a melody rather than a stamp.

Melody paradoxical constant spectrum

The paradox is that the ear is not an abstract spectrograph: it "calculates" the Fourier transform of the sound signal in a narrow time window, but the slower variations are seen as temporal evolution and not as pitch.

However, the example of paradoxical melody above contains no infrasound! The second paradox is that when two pitches are very close, they create a beat. If the period of this beat is longer than the integration window, it is seen as a sinusoidal variation in the average rating: sin(2π(f+ε)t) + sin(2π(f-ε)t) = sin(2πft)cos(2πεt)

Spectrum of the paradoxical constant spectrum melody File:ConstantSpectrumMelody.ogg

The present spectrum is made of multiple frequencies beating together, resulting in a superimposition of various pitches fading in and out at different moments and pace, thus forming the melody.

matlab/scilab/octave code

Here is the program used to generate the paradoxical melody:

n=10; length=20; harmon=10; df=0.1; 
t=(1:length*44100)/44100; 
y=0; 
for i = 0:n, 
  for j = 1:harmon, 
    y=y+sin(2*3.1415927*(55+i*df)*j*t); 
  end; 
end;
sound(y,44100);

See also