Any2HRTF / Mesh2HRTF

Open software for the numerical calculation of head-related transfer functions
European Union Public License 1.2
103 stars 11 forks source link

spectral notch / frequency notch #132

Closed pleniera closed 3 months ago

pleniera commented 3 months ago

Hello, I would like to extract the values of the frequency and magnitude for the lowest and highest peaks on the 2D HRTFs that I obtained with mesh2hrtf. Do you know how can I get them ? Is there a complete table with the magnitude (in dB) computed for each frequency ? Otherwise is it possible to print the 2D HRTFs for only one ear and not both on a single graph ?

Thank you !

f-brinkmann commented 3 months ago

Hi - the complete HRTFs and HRIR are contained in the SOFA files. In case you are using Python, you can read, process, and plot them with pyfar

pleniera commented 3 months ago

I'm sorry but I don't understand how to use pyfar in order to get what I want ? There is not a simple table, with all magnitudes referenced to their frequency, that is generated when I launch mange_NumCalc.py ? In this case, do you mean I can play with data by myself using a python code, that I must create with the pyfar library ?

f-brinkmann commented 3 months ago

You can find examples on how to work with pyfar on the hompage linked above. Another possibility would be to open the SOFA file in any NetCDF viewer. But that might be equally cumbersome.

pleniera commented 3 months ago

Yes thank you, I read the different examples. But I don't find how to extract the coordinates (frequency and magnitudes) for each points of a 2D HRTF plot, generated with the mesh2hrtf algo...