Any2HRTF / Mesh2HRTF

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

add octave band options in blender plugin #69

Closed ahms5 closed 1 year ago

ahms5 commented 1 year ago

closes #67 add 2 more options in blender addon for exact and nominal n-th octave bands. For nominal 1 and 3 is supported for exact all kinds.

SDX-LV commented 1 year ago

Question - will this octave step be compatible with SOFA HRIR format? Or will it need a special exception?

f-brinkmann commented 1 year ago

It can be written to SOFA Conventions of data type TF, but can not be converted to FIR. But that shouldn't be an issue. If you are interested in results in octave bands you usually do not want IRs as a result

ahms5 commented 1 year ago

my intention was also to extend this tool and make it more open for other purposes than HRTFs

SDX-LV commented 1 year ago

Sounds good, just please make it obvious that if this option is selected the HRIR will not be possible. So that beginners do not get in trouble with this.

f-brinkmann commented 1 year ago

We could add a test directly to mesh2input.py. Currently we only do this in compute HRIRs:

if any(np.abs(np.diff(frequencies, 2)) > .1) or frequencies[0] < .1:
        raise ValueError(
            ('The frequency vector must go from f_1 > 0 to'
             'f_2 (half the sampling rate) in equidistant steps.'))

The variable name might be different though and it should be a separate pull.

f-brinkmann commented 1 year ago

Implemented in https://pypi.org/project/mesh2scattering/