Skip to content

Commit

Permalink
Re-fixes issue #353 in the dirpat branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
fakufaku committed Oct 27, 2024
1 parent 0fd67c4 commit 6f5f88e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyroomacoustics/simulation/ism.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,12 @@ def compute_ism_rir(
time.max()
) # The image source which takes the most time to arrive to this particular microphone

# What will be the length of RIR according to t_max
N = int(math.ceil(t_max * fs + fdl2 + 1))
# Here we create an array of the right length to
# receiver the full RIR
# The +1 is due to some rare cases where numerical
# errors push the last sample over the end of the
# array
N = int(math.ceil(t_max * fs + fdl2 + 1)) + 1

oct_band_amplitude = att / dist
full_band_imp_resp = []
Expand Down

0 comments on commit 6f5f88e

Please sign in to comment.