Open happyTonakai opened 6 months ago
Find a bug, line 20 should be:
if ls_el is None or np.all(((el_arr := np.asarray(ls_el, dtype=float)) == 0)):
otherwise el_arr will be an array of bool.
Hi @happyTonakai, sorry for the late response. I have never used this code for panning to 3D layouts tbh (mostly because I did not have one available for listening). If you found a way to make it work, feel free to open a pull request. I can't promise that I can look into this anytime soon...
I'd like to build a 5.1.2 panner with two sky channels but have singular matrix error at line 62 in
vbap_panner.py
when the pan elevation is not zero. A minimum working example can be:And if I change the
pan_el
from0
to0.001
the error is gone. I think if panning elevation is zero the panner should be in 2D mode and only activate the horizontal loudspeakers so that it won't get a singular triangle.