Normalized Difference Soundscape Index (NDSI) from REAL and Kasten, et al. 2012. The NDSI seeks to "estimate the level of anthropogenic disturbance on the soundscape by computing the ratio of human-generated (anthrophony) to biological (biophony) acoustic components found in field collected sound samples" (Kasten, et al. 2012).
Tested with Matlab code courtesy of S. Gage.
ndsi(soundfile, fft_w = 1024, anthro_min = 1000, anthro_max = 2000,
bio_min = 2000, bio_max = 11000)
an object of class Wave
loaded with the function readWave of the tuneR
package.
FFT window size.
minimum value of the range of frequencies of the anthrophony.
maximum value of the range of frequencies of the anthrophony.
minimum value of the range of frequencies of the biophony.
maximum value of the range of frequencies of the biophony.
Returns a list with one object per channel
NDSI value for the left channel
NDSI value for the right channel
value for the biophony for the left channel
value for the anthrophony for the left channel
value for the biophony for the right channel
value for the anthrophony for the right channel
The bin size is determined as the difference between anthro_max and anthro_min, by default 1000 Hz.
Remote Environmental Assessment Laboratory. http://www.real.msu.edu
Kasten, Eric P., Stuart H. Gage, Jordan Fox, and Wooyeong Joo. 2012. The Remote Environmental Assessment Laboratory's Acoustic Library: An Archive for Studying Soundscape Ecology. Ecological Informatics 12: 50-67. doi: 10.1016/j.ecoinf.2012.08.001
# NOT RUN {
data(tropicalsound)
NDSI <- ndsi(tropicalsound)
print(NDSI$ndsi_left)
summary(NDSI)
# }
Run the code above in your browser using DataLab