Summary: | Volumes in dB for artsshell and artsd | ||
---|---|---|---|
Product: | [Unmaintained] arts | Reporter: | Benedikt Gollatz <benedikt> |
Component: | general | Assignee: | Arnold Krille <arnold> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Benedikt Gollatz
2003-07-12 20:19:28 UTC
While I am currently working on artscontrol and its volumeslider/levelmeter and therefor messin around with volume: Are you aware that your formular is the one for intensity? The formular used in artscontrol untill now is the one for the acoustic pressure is 20*log( volume ). So I am wondering how this could be made configurable... Arnold Apllied your patch, but it isn't working with negative dB-values since these get "eaten up" by the getopt-function... Arnold :S/apllied/applied/g Using negative dB-volumes in artsd is no problem since getopt() doesn't "eat" multiple character command line options ("-XdB"). To use negative values with artsshell you have to call "artsshell -- volumedb -X" instead of "artsshell volumedb -X"; getopt() will ignore the (false) "-X" command line option now. Maybe there should be a warning in the "usage" display. AFAIK the 20*log(volume) formula is for calculating the absolute dB(A) volume [volume_in_dBA = 20*log(acoustic_pressure / 0.00002 Pa)], not for calculating the relative dB volume. Since on every mixing console, compressor or amplifier increasing the volume 3 dB means approximately doubling the volume, I think my formula is right because: 2 = 10^(volume_dB / 10) | log() log 2 = volume_dB / 10 | * 10 10 * log 2 = volume_dB 3.0103 = volume_dB Subject: Re: Volumes in dB for artsshell and artsd On Saturday 26 July 2003 17:35, benedikt@gollatz.net wrote: > ------- Using negative dB-volumes in artsd is no problem since getopt() > doesn't "eat" multiple character command line options ("-XdB"). To use > negative values with artsshell you have to call "artsshell -- volumedb -X" > instead of "artsshell volumedb -X"; getopt() will ignore the (false) "-X" > command line option now. Maybe there should be a warning in the "usage" > display. I will investigate on this... > AFAIK the 20*log(volume) formula is for calculating the absolute dB(A) > volume [volume_in_dBA = 20*log(acoustic_pressure / 0.00002 Pa)], not for > calculating the relative dB volume. Since on every mixing console, > compressor or amplifier increasing the volume 3 dB means approximately > doubling the volume, I think my formula is right because: But it would be a change for everyone used to the display in artscontrol and I think it should be consistent all over aRts. Thats why I finally used factor 20. But I will ask the experts on kde-multimedia on this... Arnold |