Repository navigation
Conversation
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Nov 1, 2026
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
pytta.generate.stochastic_ir(reverbTime, volume, distance=1, c=343, samplingRate=None, timeLength=None, seed=None), a synthetic impulse response of a diffuse room after the statistical model of Kuttruff, Room Acoustics, 6th ed. (2016), sec. 4.2. It coversita_stochastic_room_impulse_responseof the ITA-Toolbox without an HRTF:The ITA function belongs to an application of the ITA-Toolbox whose license is "all rights reserved", so nothing was taken from its code; this implementation is written from Kuttruff. One reverberation time applies to all frequencies, and a binaural response would need the HRTF convolution of each reflection, which is left out.
The tests in
tests/test_stochastic_ir.py, for T = 0.8 s, V = 200 m³ and 3 m, print the measured values:Checked with Python 3.12, numpy 1.26 and scipy 1.17. The 7 failures of
development(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