GithubHelp home page GithubHelp logo

mimpy's Introduction

MIMPy

A framework for simple acoustical simulations in rectangular rooms.

Functionality

The package computes room impulse responses from ideal loudspeakers to ideal microphones in rectangular rooms. MIMPy can also help graphically visualize the sound field in a rectangular room. Have a look at the examples which are supplied with the source code.

It is the hope that MIMPy will eventually also be able to compute binaural room impulse responses and aid in producing binauralized audio .

Example of sound field visualization

Algorithms

The computations are based on classical mirror image modelling (MIM) as proposed in [1] and with the modification proposed in [2]. See also [3] if you are interested in the specifics of how the algorithm is implemented.

TODO

  • Add some system for connecting MIMPy to the CIPIC HRTF database. E.g. env-variable.
  • Add room.py functionality to load CIPIC HRTFs.
  • Add room.py functionality to compute average HRTFs.
  • Add C function to get HRTFs.
  • Add C function to simulate binaural RIRs.
  • Add C function to simulate RIRs for an interval of time delays (from x ms to y ms).
  • Add Cython function to combine the two above to compute approximate BRIRs at reasonable computational expense.
  • Add room.py interface to the above.
  • Add room.py functionality to binauralize audio with a moving source.
  • Add example script(s) where binaural reverb is added to audio.
  • Make everything PEP8.
  • Provide some propper means of building and installing.
  • Get the project on the PyPI repository.

References

[1] J. B. Allen, D. A. Berkley, “Image Method for Efficiently Simulating Small-Room Acoustics,” The Journal of the Acoustical Society of America, vol. 65, no. 4, pp. 943–950, Apr. 1979.
[2] P. M. Peterson, “Simulating the Response of Multiple Microphones to a Single Acoustic Source in a Reverberant Room,” The Journal of the Acoustical Society of America, vol. 80, no. 5, pp. 1527–1529, Nov. 1986.
[3] E. A. Lehmann, A. M. Johansson, “Prediction of Energy Decay in Room Impulse Responses Simulated with an Image-Source Model,” The Journal of the Acoustical Society of America, vol. 124, no. 1, pp. 269–277, Jul. 2008.
[4] V. R. Algazi, R. O. Duda, D. M. Thompson and C. Avendano, “The CIPIC HRTF Database,” Proc. 2001 IEEE Workshop on Applications of Signal Processing to Audio and Electroacoustics, pp. 99-102, Mohonk Mountain House, New Paltz, NY, Oct. 21-24, 2001.

mimpy's People

Contributors

asgeran avatar

Stargazers

 avatar Ruslan Tikhonov avatar

Watchers

Alexandre Chabot-Leclerc avatar Emil Vesterdahl avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.