The mel scale is an object from psychoacoustics. I only know about it from a short and unclear wikipedia article. It's supposed to have uniformly spaced intervals.
We start with the mel formula.
mels = 2595 * log_10(1 + (frequency / 700))
Mels seem to be additive: 100 to 150 mels should be the same interval as 150 to 200 mels.
I'm used to using cents in a similar way.
cents = 1200 * log_2(frequency ratio)
Cents aren't defined over a single frequency, only a ratio of frequencies. But the mel formula seems to be based in some way on 1000 hertz, so maybe that gives us some way to make a comparison. At least, the scale is designed so that 1000 hz is 1000 mels.
Anyway, there's a sound clip on the wikipedia page purporting to demonstrate a mel scale from 200 up to mel 1500, by increments of 50. We can figure that out. For mels in [200, 250, 300, 350, ..., 1500], we want to know the associated frequencies. For this, we just need to invert the mel formula:
frequency = 700 * (10^(mels / 2595) - 1)
and play a tone at the frequency corresponding to each mel in the list. Here are the first few, with frequencies and cents rounded to integers:
200 mels : 135 hz @ 0 cents over 200 mels
250 mels : 173 hz @ 426 cents over 200 mels
300 mels : 213 hz @ 782 cents over 200 mels
350 mels : 254 hz @ 1089 cents over 200 mels
400 mels : 298 hz @ 1360 cents over 200 mels
450 mels : 343 hz @ 1605 cents over 200 mels
500 mels : 390 hz @ 1829 cents over 200 mels
550 mels : 440 hz @ 2035 cents over 200 mels
600 mels : 492 hz @ 2227 cents over 200 mels
650 mels : 546 hz @ 2408 cents over 200 mels
700 mels : 602 hz @ 2578 cents over 200 mels
I confess that this has a compelling kind of equi-distance to it, which is why I'm trying to understand it better. You can see that this doesn't reach the octave, but it gets quite close to two octaves one line before where I cut it off. So 200 mels to 650 mels is close to two octaves.
This scale included 400 mels, and mels and frequiences are in 1 to 1 correspondence, so if we start a new scale at 400 mels and move up by units of 50 mels again, we get the same upper frequencies:
400 mels : 298 hz @ 0 cents over 400 mels
450 mels : 343 hz @ 245 cents over 400 mels
500 mels : 390 hz @ 468 cents over 400 mels
550 mels : 440 hz @ 675 cents over 400 mels
600 mels : 492 hz @ 867 cents over 400 mels
650 mels : 546 hz @ 1047 cents over 400 mels
700 mels : 602 hz @ 1218 cents over 400 mels
No comments:
Post a Comment