Open creeksflowing opened 2 years ago
As a quick idea without having looked at the code: Append the generated sweep with zeros of the specified length. For safety, it might also be good to have a short period of silence before the sweep starts,
As a quick idea without having looked at the code: Append the generated sweep with zeros of the specified length. For safety, it might also be good to have a short period of silence before the sweep starts,
That's actually a very good idea, thanks! I still have to find a way to apply the fade function to avoid clicks, let's see!
I am building a web application for the determination of room impulse responses. I'm currently using streamlit for the GUI part, this is an extract of my code relevant to sounddevice:
In short: I let the user choose the desired sample rate, the desired duration of the excitement signal (the sweep) and the maximum expected reverb decay time. After that the user can name the file and start the simultaneous playback and recording of the created file with
sd.playrec()
. The problem is: I would like to extend the duration of the recording by adding the user-inputted parametermax_reverb_option
to the duration value, as the recording should include the tail of the reverb, but apparentlysd.playrec()
does not accept a duration parameter. How can I do it? Are there other options that I'm missing?