micsens | R Documentation |
This function converts microphone sensitivity from mV/Pa to dB.
micsens(x, sref = 1, inverse = FALSE)
x |
a measured sensitivity in mV/Pa (or in dB if |
sref |
the sensitivity reference (by default equals to 1 V/Pa) |
inverse |
logical, if |
The sensitivity S in dB is calculated according to:
S_{dB} = 20 \times log_{10}(\frac{s}{s_{ref}})
with s the measured sensitivity in mv/Pa and sref the reference sensitivity (by default 1 mV/Pa).
A numeric value in dB re 1V/Pa with default settings,
in mV/Pa if inverse
is set to FALSE
.
Jerome Sueur sueur@mnhn.fr
convSPL
# conversion of a sensitivity of 2 mV/Pa
micsens(2)
# conversion of a sensitivity of -54 dB re 1V/Pa
micsens(-54,inverse=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.