Calculate the critical distance of a room with
given volume and reverberation time.
Assumes the source directivity is 1 (omnidirectional source).
See [1].
\[d_c = 0.057 \sqrt{\frac{V}{T_{60}}}\]
Parameters:
volume (double) – Volume of the room in cubic meters.
reverberation_time (double) – Reverberation time of the room in seconds.
Returns:
critical_dist – The resulting critical distance in meters.
Calculate the energy decay curve for the reverberation time and energy.
The energy decay curve is calculated as
\[E(t) = E_0 e^{-\frac{6 \ln(10)}{T_{60}} t}\]
where \(E_0\) is the initial energy, \(T_{60}\) the reverberation
time, and \(t\) the time [2].
Parameters:
times (numpy.ndarray[float]) – The times at which the energy decay curve is evaluated.
reverberation_time (float | numpy.ndarray[float]) – The reverberation time in seconds. If an array is passed, an energy
decay curve is calculated for each reverberation time.
energy (float | numpy.ndarray[float], optional) – The initial energy of the sound field, by default 1. If
reverberation_time is an array, the shape of energy is required
to match the shape or be broadcastable to the shape of
reverberation_time.
Returns:
energy_decay_curve – The energy decay curve with a cshape equal to the shape of
the passed reverberation_time.
where \(V\) is the room volume, \(S\) is the total surface area
of the room, \(\tilde{\alpha}\) is the average absorption coefficient
of the room surfaces, and \(c\) is the speed of sound.
Parameters:
volume (float) – Room volume in \(\mathrm{m}^3\)
surface_area (float) – Total surface area of the room in \(\mathrm{m}^2\)
mean_absorption (float, numpy.ndarray) – Average absorption coefficient of room surfaces between 0 and 1. If
an array is passed, the reverberation time is calculated for each value
in the array.
speed_of_sound (float) – Speed of sound in m/s. Default is 343.4 m/s, which corresponds to the
speed of sound in air at 20 °C.
Returns:
Reverberation time in seconds. The shape matches the shape of the input
variable mean_absorption.
where \(V\) is the room volume, \(S\) is the total surface area
of the room, \(\tilde{\alpha}\) is the average absorption
coefficient of the room surfaces, and \(c\) is the speed of sound.
Parameters:
surface_area (float) – Total surface area of the room in \(\mathrm{m}^2\).
mean_absorption (float, numpy.ndarray) – Average absorption coefficient of room surfaces between 0 and 1. If
an array is passed, the reverberation time is calculated for each value
in the array.
volume (float) – Room volume in \(\mathrm{m}^3\).
speed_of_sound (float) – Speed of sound in m/s. Default is 343.4 m/s, which corresponds to the
speed of sound in air at 20 °C.