MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / lin2dB

Function lin2dB

Source/Compressor.cpp:34–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace
33{
34 static double lin2dB(double lin)
35 {
36 static const double LOG_2_DB = 8.6858896380650365530225783783321; // 20 / ln( 10 )
37 return log(lin) * LOG_2_DB;
38 }
39
40 static double dB2lin(double dB)
41 {

Callers 1

ProcessAudioMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected