TransWikia.com

Mapping from Sound Pressure To Frequency Domain

Sound Design Asked by user10467738 on October 28, 2021

I have a gem infrasound recorder which samples a pressure transducer. The raw data I get back is the sound pressure. I admittedly don’t know what that means, but I do know I need to find out how to obtain the frequency spectrum given this information. Is there a mapping from sound pressure to frequency which would allow me to produce a typical waveform plot showing amplitude?

P.S. if you have a python reference for doing so that would be great!

2 Answers

If your data is indeed sound pressure in units of Pascal, then it’s relatively easy. You can use python-acoustics to read the acoustic pressure data and plot the spectrum using plot_power_spectrum method. Alternatively you can look into amplitude spectrum.

The key point is that python-acoustics treats values as an acoustic pressure rather than digital samples.

I imagine that your pressure values are sampled at equal intervals and you know the sampling frequency.

Answered by jojek on October 28, 2021

For sound pressure, read amplitude (I know that is a simplification, but it will work for this) - all you need is a fast fourier transform from time domain to frequency doamin taking the amplitude data in over time, and voila.

Helpfully, iPython Interactive Computing and Visualization Cookbook has a chapter on this available online using scipy.fftpack - the key commands are the fft() and fftfreq() functions

Also worth looking at scipy-lectures example

enter image description here

Answered by Rory Alsop on October 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP