Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1032414 // dbToPowerFactor - decibels to factor (alternative version)

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (47L) is out of date.

// Hopefully correct?
// Going off this: http://www.sengpielaudio.com/calculator-FactorRatioLevelDecibel.htm
// Application e.g. db display in Audacity's amplify effect
static double dbToPowerFactor(double db) {
  ret pow(10, db/20);
}

Author comment

Began life as a copy of #1032413

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032414
Snippet name: dbToPowerFactor - decibels to factor (alternative version)
Eternal ID of this version: #1032414/2
Text MD5: aaa1e41fce30abb1088da538dcec5b6b
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-03 02:25:55
Source code size: 240 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 84 / 134
Version history: 1 change(s)
Referenced in: [show references]