デシベル
#DSP #音楽 #数学
音・振動・電力などの物理量を、基準となる量との比の常用対数によって表した単位
2つのパワーの比のlog10の10倍
$ L_A / {\rm dB} = 10 \log_{10} \frac{A}{A_0}
電圧・電流の場合、10でなくて20をかけることになる
電力は電圧・電流を二乗した値に比例するため($ P = R I^2, $ P = \frac{E^2}{R})
$ L_V / {\rm dB} = 20 \log_{10} \frac{V}{V_0}
code:glsl
float voltageToDecibell( float voltage ) {
return 20.0 * log( voltage ) / LN10;
}
float decibellToVoltage( float decibell ) {
return pow( 10.0, decibell / 20.0 );
}
音量調整
TODO
Adobeが推奨する音量バランス
https://www.adobe.com/jp/learn/premiere-pro/web/at-work-tutorial-voice