Acoustic 3D Ray Tracing
Version 1.0.1 (20.3 MB) by
Francis Tiong
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.
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 LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.