What is the amplitude unit when we plot wav. files?
24 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Lis
il 3 Set 2013
Commentato: Mohammed Alkhatib
il 12 Giu 2022
Hello, I work with bioacoustics and in my analysis I usually use softwares like Raven 1.4 and Adobe Audition. However, I've been urged to apply Matlab in my analysis.
I need to calculate underwater sound pressure levels. I usually take the values provided by Adobe (in dBFS) and perform the necessary conversions and calculations to obtain SPL. In Matlab I need to what is the amplitude unit when I open wav. files.
Can I calculate SPL directly from the wav. file using the amplitude levels and calibration data or do I need to insert a calibration file separately?
Thank you, Lis
0 Commenti
Risposta accettata
Walter Roberson
il 3 Set 2013
Modificato: Walter Roberson
il 3 Set 2013
Usually wav files are 0 to 255, or -1 x < 1 (notice that is not '<=' 1). See <http://www.mathworks.com/help/matlab/ref/wavwrite.html
2 Commenti
Walter Roberson
il 3 Set 2013
They are normalized, with -1 to correspond to the minimum voltage that can be produced by the line driver, and +1 to correspond to the maximum voltage that can be produced by the line driver.
Più risposte (1)
Daniel Shub
il 3 Set 2013
Wav files come in two varieties. The first has a range -1 to 1 and the second has the range 0 to 255. For the first 20*log10(x) corresponds to dB FS while for the second 20*log10((x-128)/255) gives dB FS.
2 Commenti
Mohammed Alkhatib
il 12 Giu 2022
he is right you are wrong. he said its dB FS in that case you dont need to divide but if its dBSPL then you have to divide by P0
Vedere anche
Categorie
Scopri di più su Audio and Video Data in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!