LCAV / pyroomacoustics

Pyroomacoustics is a package for audio signal processing for indoor applications. It was developed as a fast prototyping platform for beamforming algorithms in indoor scenarios.

Home Page:https://pyroomacoustics.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

sun-peach opened this issue · 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.

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.