float conversion to loudness
Hi everyone,
I'm quite new to Max/MSP and am working on a patch that takes input float [0.00; 1.00] and uses it to determine how loud to play a sample. Seeing as a double increase in perceptive loudness occurs with ~10 dB increase, I was wondering how to process the input so that it would move the volume slider accordingly. By that I mean that input 1.00 would give me 0 dbFS, input 0.5 would give me -10 dbFS, 0.25 -- -20 dbFS, etc. The initial thought was using [expr log10($f1)] but then i'm not sure if it gives me the correct output. Any ideas?
Look at the atodb object. 0.5 is halving the voltage, so the result is -6 dB.
See: http://trace.wisc.edu/docs/2004-About-dB/
thanks, for your suggestion, mzed.
on the linked website, there's a clear distinction between voltage which doubles/halves with ±6 dB steps and perceptive loudness which doubles/halves with ±10 dB steps. but i guess i'll just have to use the atodb object, which works with voltage. or am i missing something here?
How about:
As I understand it...