|
noise_rms = calculate_rms(noise_sound) |
In AddBackgroundNoise, if the noise file is shorter than the music, it is repeated until equal length. However, the RMS energy of the noise signal is computed on the original file. I think that computing the RMS energy on the fully processed signal is more appropriate. What do you think about this?
Solution would be moving lines 165-171 after the line 138.