Learn R Programming

seewave (version 1.6.4)

attenuation: Generate sound intensity attenuation data

Description

This function generates dB data following theoretical spherical attenuation of sound.

Usage

attenuation(lref, dref = 1, dstop, n, plot = TRUE,
xlab = "Distance (m)", ylab = "dB", type = "l", ...)

Arguments

Value

  • If plot is FALSE return a numeric vector with the data generated.

References

Hartmann, W. M. 1998 Signals, sound and sensation. New York: Springer.

See Also

convSPL, moredB

Examples

Run this code
# theoretical attenuation up to 150 m of a 100 dB/1m sound source
attenuation(lref=100,dstop=150,n=200)

Run the code above in your browser using DataLab