Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applying reverb to each source file #147

Open
danibene opened this issue Apr 26, 2021 · 1 comment
Open

Applying reverb to each source file #147

danibene opened this issue Apr 26, 2021 · 1 comment

Comments

@danibene
Copy link

When applying reverb, I get the following warning (as expected):

Reverb is on and save_isolated_events is True. Reverberation is applied to the mixture but not output source files. In this case the sum of the audio of the isolated events will not add up to the mixture

If possible, I would like to apply reverb while still having the sum of the audio of the isolated events add up to the mixture. I tried applying reverb to the individual source files separately, and then summing them up:

tfm = sox.Transformer()
tfm.reverb(reverberance=reverb_setting * 100)
data = tfm.build_array(input_filepath=os.path.join(directory,list_files[file]))
summed += data

I compared this to applying reverb to the entire mixture and saw that the resulting signal was not equivalent.

Would applying reverb to the individual sources and then summing lead to a less realistic soundscape?

@justinsalamon
Copy link
Owner

Applying reverb individually and summing will not give the same result as applying reverb to the entire scene, that's expected.

We're planning to add support for proper room acoustics simulation in the future via e.g. pyroomacoustics, but we don't have a clear timeline for this as of now.

In terms of what might sound more realistic, @pseeth probably has some thoughts on that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants