Skip to main content

Analyze, visualize and process sound field data recorded by spherical microphone arrays.

Project description

The sound_field_analysis toolbox (short: sfa) is a Python port of the Sound Field Analysis Toolbox (SOFiA) toolbox, originally by Benjamin Bernschütz[1]. The main goal of the sfa toolbox is to analyze, visualize and process sound field data recorded by spherical microphone arrays. Furthermore, various types of testdata may be generated to evaluate the implemented functions.

The package is pure python and PEP8 compliant (except line-length). Please expect things to be slow for now and for the API to break, as the development is still very much ongoing.

Requirements

We use Python 3.5 for development. Chances are that earlier version will work too but this is untested.

The following external libraries are required:

Installation

We highly recommend the Anaconda python environment. Once installed, you can use the following steps to create a new environment with the sfa toolbox.

  1. Add the conda-forge channel: conda config --add channels conda-forge

  2. Create a new environment: create --name sfa numpy scipy plotly sound_field_analysis

  3. Activate this environment: source activate sfa

Alternatively, you can simply install through pip (pip install sound_field_analysis).

Documentation

Please find the full documentation over at https://qulab.github.io/sound_field_analysis-py/!

Examples

The following examples are available as Jupyter notebooks, either statically on github or interactivally on nbviewer. You can of course also simply download the examples and run them locally!

AE1: Ideal plane wave

Ideal unity plane wave simulation and 3D plot.

View interactively on nbviewer

AE1_img

AE3: Measured plane wave

A measured plane wave from AZ=180°, EL=90° in the anechoic chamber using a cardioid mic.

View interactively on nbviewer

AE3_img

AE6: Impulse response of ideal plane wave

Impulse Response reconstruction on a simulated ideal unity plane wave

View interactively on nbviewer

AE6_img

AE7: Impulse response of sampled plane wave

Impulse response reconstruction on a simulated sampled unity plane wave

View interactively on nbviewer

AE7_img

References

The sound_field_analysis toolbox is based on the Matlab/C++ Sound Field Analysis Toolbox (SOFiA) toolbox by Benjamin Bernschütz. For more information you may refer to the original publication:

[1] Bernschütz, B., Pörschmann, C., Spors, S., and Weinzierl, S. (2011). SOFiA Sound Field Analysis Toolbox. Proceedings of the ICSA International Conference on Spatial Audio

The Lebedev grid generation was adapted from an implementaion by Richard P. Muller.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sound_field_analysis-0.1.dev0.tar.gz (22.0 kB view hashes)

Uploaded Source

Built Distribution

sound_field_analysis-0.1.dev0-py3-none-any.whl (24.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page