-
Notifications
You must be signed in to change notification settings - Fork 432
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
Complex rooms made with polygons and from corners freezes at room.image_source_model() for microphones with directivity #383
Comments
The code freezes in room.image_source_model() at |
Thanks for catching this. Is it possible to share a code snippets that reproduce the problem? |
I realized that lower image orders (like 2) usually don't freeze, could it be a computation limitation? Anyway here's the snippet: import numpy as np corners = np.array([[0,0], [0,5], [1,5], [1,2], [2,2], [2,5], [3,5], [3,0], [2,0], [2,1], [1,1], [1,0]]).T room = pra.Room.from_corners( room.extrude(3) rot = Rotation3D([0, 0], "yz", degrees=True) source_directivity = measurements.get_source_directivity('Genelec_8020',rot) hrtf = MeasuredDirectivityFile(path="mit_kemar_normal_pinna.sofa", fs=16000) #freezes afterwards |
Thanks for providing the code. |
True, but then the ray tracing does not support directivity so it wouldn’t make a realistic reverberation. Is there a plan to implement directivities to ray tracing anytime soon? |
I made an L shaped room and placed a Genelec_8020 source with HATS microphone given in the example. The code freezes when room.image_source_model() is called. Works fine with shoebox room.
The text was updated successfully, but these errors were encountered: