• Stars
    star
    414
  • Rank 104,550 (Top 3 %)
  • Language
    C++
  • License
    MIT License
  • Created over 8 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Generating room impulse responses

DOI

RIR-Generator

The image method, proposed by Allen and Berkley in 1979 [1], is probably one of the most frequently used methods in the acoustic signal processing community to create synthetic room impulse responses. A mex-function, which can be used in MATLAB, was developed to generate multi-channel room impulse responses using the image method. This function enables the user to control the reflection order, room dimension, and microphone directivity.

This repository includes a tutorial, MATLAB examples, and the source code of the mex-function.

More information can be found here.

Compile mex-function in MATLAB

Run

mex -setup C++

mex rir_generator.cpp rir_generator_core.cpp

References

  1. J.B. Allen and D.A. Berkley, "Image method for efficiently simulating small-room acoustics," Journal Acoustic Society of America, 65(4), April 1979, p 943.