Julia package for room acoustic modeling.
Find a file
2023-08-30 20:08:19 +02:00
src TxRxModels: CardioidFamilyPattern added 2023-08-28 10:33:22 +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 [compat] update 2023-08-30 20:08:19 +02:00
README.md README update 2023-08-27 15:41:10 +02:00

RoomAcoustics.jl

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

] add https://codeberg.org/zymon/RoomAcoustics.jl

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)