Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

micsens

Microphone sensitivity and conversion


Description

This function converts microphone sensitivity from mV/Pa to dB.

Usage

micsens(x, sref = 1, inverse = FALSE)

Arguments

x

a measured sensitivity in mV/Pa (or in dB if inverse is TRUE)

sref

the sensitivity reference (by default equals to 1 V/Pa)

inverse

logical, if TRUE, the inverse conversion from dB to mV/Pa is computed.

Details

The sensitivity S in dB is calculated according to:

S = 20*log(s/sref)

with s the measured sensitivity in mv/Pa and sref the reference sensitivity (by default 1 mV/Pa).

Value

A numeric value in dB re 1V/Pa with default settings, in mV/Pa if inverse is set to FALSE.

Author(s)

Jerome Sueur sueur@mnhn.fr

See Also

Examples

# conversion of a sensitivity of 2 mV/Pa
micsens(2)
# conversion of a sensitivity of -54 dB re 1V/Pa
micsens(-54,inverse=TRUE)

seewave

Sound Analysis and Synthesis

v2.1.6
GPL (>= 2)
Authors
Jerome Sueur <sueur@mnhn.fr> [cre, au], Thierry Aubin [au], Caroline Simonis [au], Laurent Lellouch [main ctrb], Ethan C. Brown [ctrb], Marion Depraetere [ctrb], Camille Desjonqueres [ctrb], Francois Fabianek [ctrb], Amandine Gasc [ctrb], Eric Kasten [ctrb], Stefanie LaZerte [ctrb], Jonathan Lees [ctrb], Jean Marchal [ctrb], Andre Mikulec [ctrb], Sandrine Pavoine [ctrb], David Pinaud [ctrb], Alicia Stotz [ctrb], Luis J. Villanueva-Rivera [ctrb], Zev Ross [ctrb], Carl G. Witthoft [ctrb], Hristo Zhivomirov [ctrb].
Initial release
2020-06-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.