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.
https://pyroomacoustics.readthedocs.io
MIT License
1.33k stars 417 forks source link

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

Open sun-peach opened 7 months ago

sun-peach commented 7 months ago

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.

fakufaku commented 7 months ago

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.