-
Notifications
You must be signed in to change notification settings - Fork 39
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
Relative Source position for SimpleFreeFieldHRIR in get_ir #161
Comments
I agree, this is a bug. Your second point is not so obvious. Let's assume we had [idx,weights] = point_selection(x0,xs+X_sofa,conf);
[idx,weights] = point_selection(bsxfun(@minus,x0,X_sofa),xs,conf); |
Yes, they will due to the assumptions made by the point selection method. For However, for |
OK, in this case your proposed solution of But what happens for off-center measurements. Let's assume the worst case: the measurement was done with a sphere with slightly varying radius centered at [0, 1, 0]. The dummy head ( |
No, that's not how it works. The measurements have been done with |
This makes sense. As I don't know any HRTF measurements with off-center dummy head positions its maybe not a big problem that at the moment we cannot handle such a case with I created a small pull request including your suggested solution from above: #165 |
Regarding https://github.com/sfstoolbox/sfs-matlab/blob/master/SFS_ir/get_ir.m#L123-L133
This first makes
xs
relative toX
byxs-X
but then addsX_sofa
. IfX_sofa
is not[0 0 0]
, then this is not the source position relative to the listener, anymore. The combination of head orientation and relative source position is not correct for this case:Furthermore, functions like
findconvexcone
assume thex0
andxs
to be centered around the listener.Fix?
X_sofa
can be incorporated by applying it to the measured positionsx0
,The text was updated successfully, but these errors were encountered: