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

Can't generate 48kHz rirs longer than 1s #52

Closed
JBloodless opened this issue Dec 20, 2023 · 4 comments
Closed

Can't generate 48kHz rirs longer than 1s #52

JBloodless opened this issue Dec 20, 2023 · 4 comments

Comments

@JBloodless
Copy link

Hi. I'm aware about #46 but it looks like it shouldn't be a big problem to generate bigger number of points. There's no problem in generating for example 2 seconds of 16kHz RIRs, and for consistency of my experiments I'd like to generate 2s of 48kHz RIRs, but it throws me GPUassert: invalid configuration argument /tmp/pip-req-build-m2v7oxdq/src/gpuRIR_cuda.cu 661. Is there any workaround or am I stuck with shorter fullband files?

@DavidDiazGuerra
Copy link
Owner

Hi Ivan, sorry for the late reply.

2 seconds at 48 kHz is a quite long RIR in terms of the number of samples. Are you computing the whole of it using the ISM or are you computing the late part with the diffuse noise model?

@JBloodless
Copy link
Author

I just slapped my parameters into gpuRIR.simulateRIR, so I guess the answer is the first option

@DavidDiazGuerra
Copy link
Owner

You can control at which point you start using the diffuse noise model using a Tdiff lower than Tmax when calling gpuRIR.simulateRIR. This might allow you to compute longer RIRs but will have an impact on the accuracy of the simulation, so I do not know if this is a good solution for you.

@JBloodless
Copy link
Author

Thanks a lot, I'll give it a try. Closing this for now.

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