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

crop leading zeros and trailing zeros #3

Open
gladys0313 opened this issue Feb 24, 2020 · 0 comments
Open

crop leading zeros and trailing zeros #3

gladys0313 opened this issue Feb 24, 2020 · 0 comments

Comments

@gladys0313
Copy link

Hello! Thanks for this great library. I've seen many simulation libraries but none of them include the simulation of scattering. Your inclusion of scattering is really useful.

I have a question though. When I simulated 1000 RIRs with 40 microphones and 25 sources, the resulting RIRs are quite long (~21 seconds). However, when I only simulated 6 RIRs in the same room, the resulting RIRs are much shorter. I'm sure this is not because of the source-receiver distance or the room parameters. Then I found that basically after 3s, the remaining samples almost have a 0 amplitude. I set AutoCrop to false because I want to keep the leading zeros in favor of a fair direct sound arrival time simulation, but at the same time I also have to keep the trailing zeros in the current code...

I was wondering whether you could share the source code of MCRoomSim.mexw64 so that I could change the code a little bit to fit my use (keep leading zeros while cropping trailing zeros)? If the code could not be shared, could you kindly update this zero cropping function in your original code?

Thanks a lot in advance.

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

1 participant