Julia package for room acoustic modeling.
Find a file
zymon a9200e1106 Refactor of the ISM method for rectangular room.
Squashed commit of the following:

commit f00ca2cbc9
Author: zymon <s@zymon.org>
Date:   Mon Jun 10 16:29:11 2024 +0200

    insert_impuse

commit 9c922f79bf
Author: zymon <s@zymon.org>
Date:   Tue Jun 4 16:26:04 2024 +0200

    aktu

commit 88ba6ea0b0
Author: zymon <s@zymon.org>
Date:   Sun Jun 2 23:25:11 2024 +0200

    generator of image sources
2024-06-10 16:30:20 +02:00
random sinc vectorization test 2023-11-18 23:43:21 +01:00
src Refactor of the ISM method for rectangular room. 2024-06-10 16:30:20 +02:00
.gitignore init 2022-10-13 15:50:42 +02:00
LICENSE Change of a license 2022-10-25 20:31:47 +02:00
Project.toml SLEEF cos sin 2024-04-13 18:25:16 +02:00
README.md README.md: update install instruction 2023-11-01 15:28:03 +01:00

RoomAcoustics.jl

RoomAcoustics.jl is a Julia package for acoustics simulations of the rooms.

] add RoomAcoustics

Currently, supported methods:

  • Fast Image Source method for rectangular (shoebox) rooms
  • Transmitter and receiver directivity pattern support

Example

using RoomAcoustics
using RoomAcoustics.TxRxModels

sampling_rate = 16e3
c = 343.0 # Wave propagation velocity

room = let
    L = (10.0, 5.0, 3.0)
    β = fill(0.55, 6) |> Tuple
    RectangularRoom(c, L, β)
end

rir_config = let
    h_len = convert(Int, sampling_rate * 0.50)
    ISMConfig((0, -1), sampling_rate, h_len)
end

rx = [2.2, 4.1, 1.6] |> TxRx
tx = [2.2, 4.1, 1.7] |> TxRx

h = ISM(tx, rx, room, rir_config)