AdaptLevel: Adapt RMS Power Level

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/AdaptLevel.R

Description

This function adapts the RMS power level of the signal to the specified dB level.

Usage

1
AdaptLevel(inSignal, indB)

Arguments

inSignal

a numeric vector representing the input signal.

indB

an scalar inicating the wanted level (0 is maximum level without clipping, -20 is reasonable).

Details

The reference value of 0 dB is the level of a square wave with amplitude 1. Thus, a sine wave with amplitude 1 yields -3.01 dB.

Value

A numeric vector representing the adapted input signal.

Note

The multi-channel version of AdaptLevel is deprecated and only it is available in IPEM Toolbox (Matlab).

Author(s)

Marc Vidal (R version). Based on the original code from Marc Leman and Koen Tanghe.

Examples

1

m-vidal/pv01 documentation built on Dec. 2, 2020, 1:24 a.m.