Repository navigation
Conversation
pytta.iso9613.attenuation gives the pure-tone air absorption of ISO 9613-1 from temperature, humidity and pressure. pytta.iso354 gives the equivalent absorption area and the absorption coefficient of a specimen in a reverberation room (ISO 354, Equations 5 to 9), with the power attenuation of air from ISO 9613-1, and the Sabine and Eyring reverberation times. Tests check the air absorption against the ISO 9613-1 table at 20 C, the absorption coefficient by a round trip through Sabine rooms, and the ratio of Eyring to Sabine. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two modules for absorption, as
ita_sabineandita_reverberation_chamber_absorption_coefficientin the ITA-Toolbox:pytta.iso9613.attenuation(f, temperature, humidity, pressure): pure-tone attenuation of sound by the atmosphere in dB/m, ISO 9613-1. The humidity enters through the molar concentration of water vapour, from the saturation pressure of the standard.pytta.iso354, measurement of sound absorption in a reverberation room, ISO 354:2003:absorption_area(T, V, c, m=0): Equations (5) and (7), A = 55.3 V / (c T) - 4 V m;absorption_coefficient(T1, T2, V, S, t1, t2, m1, m2): Equations (8) and (9), with the speed of sound of each measurement from Equation (6);power_attenuation(f, temperature, humidity, pressure): m = alpha / (10 lg e), with alpha from ISO 9613-1, as the standard asks;sabine(V, A, c, m=0)andeyring(V, S, alpha, c, m=0): reverberation times.The tests in
tests/test_iso354.py:Checked with Python 3.12, numpy 1.26 and scipy 1.17. The existing tests behave as on
development: the 7 failures there (3 intest_h5io.py, 4 intest_pyttasave.py) are the same with and without this change.Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com