sofacoustics / SOFAtoolbox

SOFA Toolbox (API for Matlab, Octave)
http://sofaconventions.org
European Union Public License 1.2
116 stars 31 forks source link

SOFAhrtf2dtf: Support Data.Delay #69

Open isfmiho opened 1 year ago

isfmiho commented 1 year ago

SOFAhrtf2dtf does not consider Data.Delay values other than 0.

As a quick fix: The latest update (development branch) contains a note in the header. It delivers a warnung if a value >0 is found (dtf). For ctf calculation, Data.Delay will be set to zeros in the dimension IR. It does not crash anymore.

Proper fix: Consider Data.Delay for dtf and ctf calculations.