Skip to content

Fix conversion SOFA to DAFF

Vera Erbes requested to merge fix_SOFA_to_DAFF into master

I suggest two changes to fix the conversion from SOFA HRIRs to DAFF files:

  1. The HRIRs are only zero-padded if their lengths are not divisible by 4.

  2. When the source positions of the SOFA file given in degrees are recalculated in radians, small numerical inaccuracies arise. This leads to counting too many angles as "unique" and therefore changing the grid of directions. The result is a dataset with a lot more HRIR directions than before (filled with nearest neighbour impulse responses). I suggest to use the default tolerance of uniquetol() instead of unique() to fix this.

What do you think?

Merge request reports

Loading