We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fd67c4 commit 6f5f88eCopy full SHA for 6f5f88e
pyroomacoustics/simulation/ism.py
@@ -195,8 +195,12 @@ def compute_ism_rir(
195
time.max()
196
) # The image source which takes the most time to arrive to this particular microphone
197
198
- # What will be the length of RIR according to t_max
199
- N = int(math.ceil(t_max * fs + fdl2 + 1))
+ # Here we create an array of the right length to
+ # receiver the full RIR
200
+ # The +1 is due to some rare cases where numerical
201
+ # errors push the last sample over the end of the
202
+ # array
203
+ N = int(math.ceil(t_max * fs + fdl2 + 1)) + 1
204
205
oct_band_amplitude = att / dist
206
full_band_imp_resp = []
0 commit comments