nwayt001 / sono-lumo

0 stars 1 forks source link

frequency scales #2

Open crumplecat opened 7 years ago

crumplecat commented 7 years ago

Changing frequency mapping. When you get to it. implementation: @nwayt001 research: @crumplecat or Greg

getting started: "The semitone scale used in Western musical notation is not a linear frequency scale but logarithmic. Other scales have been derived directly from experiments on human hearing perception, such as the mel scale and Bark scale (these are used in studying perception, but not usually in musical composition), and these are approximately logarithmic in frequency at the high-frequency end, but nearly linear at the low-frequency end."

nwayt001 commented 7 years ago

In the latest commit https://github.com/nwayt001/sono-lumo/commit/a72c4e3fb94594e7331da519db278d600433c41f , I added the option to use either the mel frequency scale (default now) or just use a linear scaling. I followed an equation for the mel scaling from wikipedia so I believe i'm doing it right, but not 100% sure. Also I've added a simple moving average filter (not tested) to the frequency coefficients so it should be less noisy.