Acoustic 3D Ray Tracing

Importing a 3D scene as an 'stl' file, obtaining the transfer func from point to any point within the scene and rendering the sound out.
30 Downloads
Updated 8 May 2024

View License

An iPhone can be utilized to generate a 3D scan of a room, producing a file with an "stl" extension. These STL files can be imported into MATLAB®, where a sound source and microphone location can be designated within the 3D environment. By employing the ray tracing function, it is possible to calculate the delay and phase profile, which represents the arrival times of various audio wavefronts at the microphone. The impact of these early reflections can be modeled using an FIR filter. Additionally, Sabine's formula allows for the estimation of the room's reverberation time, which characterizes the late-arriving wavefronts. This reverberation can be simulated with the reverberator function. Integrating these components, a WAV file can be processed to simulate the sound as it would be recorded from any location within the room.

Cite As

Francis Tiong (2024). Acoustic 3D Ray Tracing (https://www.mathworks.com/matlabcentral/fileexchange/165536-acoustic-3d-ray-tracing), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024a
Compatible with R2023a and later releases
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.1

Added thumbnail image.

1.0.0