Open alexandergwm opened 1 year ago
Hi @alexandergwm , the simulator has some internal state that needs to be manually reset after changing the sources. The easiest is to just re-create the object. I don't think this has a lot of overhead. If you insist on reusing the same object, you can reset the state as follows:
room.simulator_state["ism_done"] = False
room.simulator_state["rt_done"] = False # only needed if you use ray tracing
Hello,
I am working on a project where I need to simulate one room by adding sources to a single ShoeBox room object and clearing the sources after each iteration. That is, I want to keep the characteristics of the room the same but just change the position and content of the source. However, I am encountering errors during the simulation process, specifically when calling the compute_rir() function.
Here's the code snippet for my current implementation:
`room = pra.ShoeBox(room_dim, fs=16000, materials=pra.Material(e_absorption), max_order=max_order) room.add_microphone_array(mic_locs)
for i in range(4620):
Add source to the room
I just received the error without any description and it just referer there is something wrong in 'compute_rir()' Thanks for your help.