pyroomacoustics icon indicating copy to clipboard operation
pyroomacoustics copied to clipboard

how can we replace a source with another one in a generated room

Open sun-peach opened this issue 2 years ago • 1 comments

I need to test several individual sources in the same generated room. Now I iteratively generated the same room with the same parameters. Is there a way that we can replace the source with another in a generated room?

Thanks.

sun-peach avatar Sep 29 '23 17:09 sun-peach

Hi @sun-peach , if you know all the source locations in advance, you can just generate everything all at once (add multiple sources to the room).

If the locations are not independent (e.g. you determine the next location from the simulation output), then the current best solution is as you do it now, i.e. recreate the room. The simulation changes the state of the Room object and it is best to create a new one for a new simulation.

fakufaku avatar Sep 29 '23 23:09 fakufaku