acoular

Acoular - Acoustic testing and source mapping software

https://github.com/acoular/acoular

Science Score: 77.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 7 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    10 of 20 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.6%) to scientific vocabulary

Keywords

acoustic-imaging acoustic-testing acoustics beamforming microphone-array microphone-array-processing signal-processing
Last synced: 6 months ago · JSON representation ·

Repository

Acoular - Acoustic testing and source mapping software

Basic Info
  • Host: GitHub
  • Owner: acoular
  • License: bsd-3-clause
  • Language: Python
  • Default Branch: master
  • Homepage: https://www.acoular.org
  • Size: 33.5 MB
Statistics
  • Stars: 567
  • Watchers: 24
  • Forks: 143
  • Open Issues: 48
  • Releases: 14
Topics
acoustic-imaging acoustic-testing acoustics beamforming microphone-array microphone-array-processing signal-processing
Created about 11 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Code of conduct Citation Security Authors

README.md

Acoular Logo

PyPI PyPI Actions status DOI

Acoular

Acoular is a Python module for acoustic beamforming that is distributed under the new BSD license.

It is aimed at applications in acoustic testing. Multichannel data recorded by a microphone array can be processed and analyzed in order to generate mappings of sound source distributions. The maps (acoustic photographs) can then be used to locate sources of interest and to characterize them using their spectra.

Features

  • frequency domain beamforming algorithms: delay & sum, Capon (adaptive), MUSIC, functional beamforming, eigenvalue beamforming
  • frequency domain deconvolution algorithms: DAMAS, DAMAS+, Clean, CleanSC, orthogonal deconvolution
  • frequency domain inverse methods: CMF (covariance matrix fitting), general inverse beamforming, SODIX
  • time domain methods: delay & sum beamforming, CleanT deconvolution
  • time domain methods applicable for moving sources with arbitrary trajectory (linear, circular, arbitrarily 3D curved),
  • frequency domain methods for rotating sources via virtual array rotation for arbitrary arrays and with different interpolation techniques
  • 1D, 2D and 3D mapping grids for all methods
  • gridless option for orthogonal deconvolution
  • four different built-in steering vector formulations
  • arbitrary stationary background flow can be considered for all methods
  • efficient cross spectral matrix computation
  • flexible modular time domain processing: n-th octave band filters, fast, slow, and impulse weighting, A-, C-, and Z-weighting, filter bank, zero delay filters
  • time domain simulation of array microphone signals from fixed and arbitrarily moving sources in arbitrary flow
  • fully object-oriented interface
  • lazy evaluation: while processing blocks are set up at any time, (expensive) computations are only performed when needed
  • intelligent and transparent caching: computed results are automatically saved and loaded on the next run to avoid unnecessary re-computation
  • parallel (multithreaded) implementation with Numba for most algorithms
  • easily extendable with new algorithms

License

Acoular is licensed under the BSD 3-clause. See LICENSE

Citing

If you use Acoular for academic work, please consider citing both our publication:

Sarradj, E., & Herold, G. (2017). 
A Python framework for microphone array data processing.
Applied Acoustics, 116, 50–58. 
https://doi.org/10.1016/j.apacoust.2016.09

and our software:

Sarradj, E., Herold, G., Kujawski, A., Jekosch, S., Pelling, A. J. R., Czuchaj, M., Gensch, T., & Oertwig, S..
Acoular – Acoustic testing and source mapping software. 
Zenodo. https://zenodo.org/doi/10.5281/zenodo.3690794

Dependencies

Acoular runs under Linux, Windows and MacOS and needs Numpy, Scipy, Traits, scikit-learn, pytables, Numba packages available. Matplotlib is needed for some of the examples.

If you want to use input from a soundcard, you will also need to install the sounddevice package. Some solvers for the CMF method need Pylops.

Installation

Acoular can be installed via conda, which is also part of the Anaconda Python distribution. It is recommended to install into a dedicated conda environment. After activating this environment, run

conda install -c acoular acoular

This will install Acoular in your Anaconda Python environment and make the Acoular library available from Python. In addition, this will install all dependencies (those other packages mentioned above) if they are not already present on your system.

A second option is to install Acoular via pip. It is recommended to use a dedicated virtual environment and then run

pip install acoular

For more detailed installation instructions, see the documentation.

Documentation and help

Documentation is available here with a getting started section and examples.

The Acoular blog contains some tutorials.

If you discover problems with the Acoular software, please report them using the issue tracker on GitHub. Please use the Acoular discussions forum for practical questions, discussions, and demos.

Contributing

We are always happy to welcome new contributors to the project. If you are interested in contributing, have a look at the CONTRIBUTING.md file.

Example

This reads data from 64 microphone channels and computes a beamforming map for the 8kHz third octave band:

```python from pathlib import Path

import acoular as ac import matplotlib.pylab as plt

this file contains the microphone coordinates

micgeofile = Path(ac.file).parent / 'xml' / 'array_64.xml'

set up object managing the microphone coordinates

mg = ac.MicGeom( file=micgeofile )

generate test data, in real life this would come from an array measurement

p = ac.demo.createthreesources(mg, h5savefile='three_sources.h5')

set up object managing the microphone array data (usually from measurement)

ts = ac.TimeSamples( file='three_sources.h5')

set up object managing the cross spectral matrix computation

ps = ac.PowerSpectra( source=ts, block_size=128, window='Hanning' )

alternatively, you can use the in-memory Mixer object directly:

ps = ac.PowerSpectra( source=p, block_size=128, window='Hanning' )

set up object managing the mapping grid

rg = ac.RectGrid( xmin=-0.2, xmax=0.2, ymin=-0.2, ymax=0.2, z=-0.3, \ increment=0.01 )

set up steering vector, implicitely contains also the standard quiescent

environment with standard speed of sound

st = ac.SteeringVector( grid = rg, mics=mg )

set up the object managing the delay & sum beamformer

bb = ac.BeamformerBase( freq_data=ps, steer=st )

request the result in the 8kHz third octave band from approriate FFT-Lines

this starts the actual computation (data intake, FFT, Welch CSM, beamforming)

pm = bb.synthetic( 8000, 3 )

compute the sound pressure level

Lm = ac.L_p( pm )

plot the map

plt.imshow( Lm.T, origin='lower', vmin=Lm.max()-10, extent=rg.extent, \ interpolation='bicubic') plt.title('Beamformer (base) for 3 sources measured for 8000 Hz') plt.xlabel('x in m') plt.ylabel('y in m') plt.colorbar(label=r'$Lp$') plt.savefig('threesources.png', dpi=300, bbox_inches='tight') plt.show() ```

result

Owner

  • Name: acoular
  • Login: acoular
  • Kind: organization

Citation (CITATION.cff)

cff-version: 1.2.0
title: Acoular – Acoustic testing and source mapping software
abstract: "<p>Acoular is a framework for acoustic beamforming that is written in the Python programming language. It is aimed at applications in acoustic testing. Multichannel data recorded by a microphone array can be processed and analyzed in order to generate mappings of sound source distributions. The maps (acoustic photographs) can then be used to locate sources of interest and to characterize them using their spectra.</p><p>A few highlights of the framework:</p><blockquote><div><ul class=\"simple\"><li><p>covers several beamforming algorithms</p></li><li><p>different advanced deconvolution algorithms</p></li><li><p>both time-domain and frequency-domain operation included</p></li><li><p>3D mapping possible</p></li><li><p>application for stationary and for moving targets</p></li><li><p>supports both scripting and graphical user interface</p></li><li><p>efficient: intelligent caching, parallel computing with Numba</p></li><li><p>easily extendible and well documented</p></li></ul></div></blockquote>"
message: >-
  If you use this software, please cite both the article and the software
  itself using the metadata from this file.
type: software
authors:
  - given-names: "Ennes"
    family-names: "Sarradj"
    affiliation: "Department of Engineering Acoustics, TU Berlin"
    orcid: "https://orcid.org/0000-0002-0274-8456"
  - given-names: "Gert"
    family-names: "Herold"
    affiliation: "Department of Engineering Acoustics, TU Berlin"
    orcid: "https://orcid.org/0000-0001-5284-051X"
  - given-names: "Adam"
    family-names: "Kujawski"
    affiliation: "Department of Engineering Acoustics, TU Berlin"
    orcid: "https://orcid.org/0000-0003-4579-8813"
  - given-names: "Simon"
    family-names: "Jekosch"
    affiliation: "Department of Engineering Acoustics, TU Berlin"
  - given-names: "Art J. R."
    family-names: "Pelling"
    affiliation: "Department of Engineering Acoustics, TU Berlin"
    orcid: "https://orcid.org/0000-0003-3228-6069"
  - given-names: "Mikolaj"
    family-names: "Czuchaj"
    affiliation: "Department of Engineering Acoustics, TU Berlin"
  - given-names: "Tom"
    family-names: "Gensch"
    affiliation: "Department of Engineering Acoustics, TU Berlin"
  - given-names: "Sebastian"
    family-names: "Oertwig"
    affiliation: "Deutsches Zentrum für Luft- und Raumfahrt (DLR)"
  - given-names: "Jakob"
    family-names: "Tschavoll"
    affiliation: "Department of Engineering Acoustics, TU Berlin"
  - given-names: "Jan"
    family-names: "Ostendorf"
    affiliation: "Department of Engineering Acoustics, TU Berlin"
  - given-names: "Timo"
    family-names: "Schumacher"
    affiliation: "Deutsches Zentrum für Luft- und Raumfahrt (DLR)"
    orcid: "https://orcid.org/0000-0001-8349-2570"
identifiers:
  - description: "acoular: all versions"
    type: "doi"
    value: "10.5281/zenodo.3690794"
  - description: "acoular: v25.04"
    type: "doi"
    value: "10.5281/zenodo.15303156"
  - description: "acoular: v25.03"
    type: "doi"
    value: "10.5281/zenodo.15019298"
  - description: "acoular: v25.01"
    type: "doi"
    value: "10.5281/zenodo.14780740"
  - description: "acoular: v24.10"
    type: "doi"
    value: "10.5281/zenodo.13971849"
  - description: "acoular: v24.07"
    type: "doi"
    value: "10.5281/zenodo.12794155"
  - description: "acoular: v24.05"
    type: "doi"
    value: "10.5281/zenodo.11234980"
  - description: "acoular: v24.03"
    type: "doi"
    value: "10.5281/zenodo.10809609"
  - description: "acoular: v23.11"
    type: "doi"
    value: "10.5281/zenodo.10158616"
  - description: "acoular: v23.6"
    type: "doi"
    value: "10.5281/zenodo.8083074"
  - description: "acoular: v22.3"
    type: "doi"
    value: "10.5281/zenodo.6391204"
  - description: "acoular: v21.05"
    type: "doi"
    value: "10.5281/zenodo.4740537"
  - description: "acoular: v20.10"
    type: "doi"
    value: "10.5281/zenodo.4154371"
  - description: "acoular: v20.02"
    type: "doi"
    value: "10.5281/zenodo.3690795"
repository-code: "https://github.com/acoular/acoular"
url: "https://acoular.org"
license: "BSD-3-Clause"
version: "25.04"
date-released: "2025-04-29"
contact:
  - email: "info@acoular.org"
    name: "Acoular Development Team"
preferred-citation:
    type: "article"
    title: "A Python framework for microphone array data processing"
    doi: "10.1016/j.apacoust.2016.09"
    authors:
      - family-names: "Sarradj"
        given-names: "Ennes"
        affiliation: "Department of Engineering Acoustics, TU Berlin"
        orcid: "https://orcid.org/0000-0002-0274-8456"
      - family-names: "Herold"
        given-names: "Gert"
        affiliation: "Department of Engineering Acoustics, TU Berlin"
        orcid: "https://orcid.org/0000-0001-5284-051X"
    year: "2017"
    journal: "Applied Acoustics"
    volume: "116"
    start: "50"
    end: "58"

GitHub Events

Total
  • Create event: 72
  • Release event: 4
  • Issues event: 100
  • Watch event: 68
  • Delete event: 72
  • Issue comment event: 113
  • Push event: 520
  • Pull request review comment event: 248
  • Pull request review event: 286
  • Pull request event: 198
  • Fork event: 13
Last Year
  • Create event: 72
  • Release event: 4
  • Issues event: 100
  • Watch event: 68
  • Delete event: 72
  • Issue comment event: 113
  • Push event: 520
  • Pull request review comment event: 248
  • Pull request review event: 286
  • Pull request event: 198
  • Fork event: 13

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 1,293
  • Total Committers: 20
  • Avg Commits per committer: 64.65
  • Development Distribution Score (DDS): 0.829
Past Year
  • Commits: 154
  • Committers: 8
  • Avg Commits per committer: 19.25
  • Development Distribution Score (DDS): 0.545
Top Committers
Name Email Commits
Ennes Sarradj s****j@t****e 221
Simon Jekosch s****h@t****e 208
Gert Herold g****h@g****t 178
esarradj e****j@t****e 173
adamkujawski k****d@g****m 122
sjekosch 4****h 91
Adam Kujawski a****i@t****e 79
Tom Jan Gensch t****h@c****e 59
GH g****e@w****e 40
Mikolaj Czuchaj m****j@t****e 30
Ennes Sarradj e****j@g****e 27
Adam Kujawski a****i@c****e 24
Art Pelling a****g@t****e 17
Art Joshua Robert Pelling a****g@c****e 15
Gert Herold g****d@t****e 3
Todd t****8@g****m 2
CarlosAMolina c****a@g****m 1
Gert Herold g****d 1
FrankK20 3****0 1
sarradj s****j@s****) 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 284
  • Total pull requests: 333
  • Average time to close issues: 3 months
  • Average time to close pull requests: 12 days
  • Total issue authors: 53
  • Total pull request authors: 15
  • Average comments per issue: 1.44
  • Average comments per pull request: 0.59
  • Merged pull requests: 255
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 74
  • Pull requests: 198
  • Average time to close issues: 26 days
  • Average time to close pull requests: 9 days
  • Issue authors: 10
  • Pull request authors: 8
  • Average comments per issue: 0.57
  • Average comments per pull request: 0.57
  • Merged pull requests: 149
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • esarradj (98)
  • adku1173 (66)
  • artpelling (25)
  • gherold (15)
  • jtodev (8)
  • slowglow (5)
  • jake-is-ESD-protected (4)
  • sjekosch (3)
  • sagyHarpaz (2)
  • hewittzgh (2)
  • ti-sch (2)
  • adrien59cadri (2)
  • Qinstudy (2)
  • mcepl (2)
  • mhcn (1)
Pull Request Authors
  • adku1173 (140)
  • artpelling (64)
  • jtodev (62)
  • esarradj (43)
  • gherold (18)
  • sjekosch (6)
  • jake-is-ESD-protected (6)
  • PhiDiBee (4)
  • FrankK20 (4)
  • toddrme2178 (3)
  • CarlosAMolina (1)
  • bnavigator (1)
  • ti-sch (1)
  • boneyag (1)
  • gomeslucasm (1)
Top Labels
Issue Labels
gitlab-lagacy (106) bug (73) change (26) new feature (20) gitlab-legacy (18) refactoring (17) nonurgent (16) enhancement (15) docs (12) tests (9) ci (8) has attachment (8) doc (6) caching (4) maintenance (2) fix (2) gui (1) sinus (1)
Pull Request Labels
docs (168) maintenance (89) ci (87) fix (78) tests (69) linting (28) enhancement (24) refactoring (14) new feature (12) examples (10) caching (5) nonurgent (2) bug (1) change (1)

Dependencies

.github/workflows/python-package.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
docs/source/requirements.txt pypi
  • ipython *
  • scipy >=0.13
  • traits >=4.4
pyproject.toml pypi
  • numba *
  • numpy *
  • scikit-learn *
  • scipy >=1.1.0
  • tables >=3.4.4
  • traits >=6.0
.github/workflows/build_docs.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • peaceiris/actions-gh-pages v3 composite