[template, target] = mclachlan2021_featureextraction(SOFAobj)
SOFAtemplate | Struct in SOFA format with HRTFs |
template | template struct with spectral components |
target | template struct with spectral components |
MCLACHLAN2021_FEATUREEXTRACTION(...) computes temporally integrated spectral magnitude profiles and itd.
MCLACHLAN2021_FEATUREEXTRACTION accepts the following optional parameters:
'source_ir',source_ir | |
Set the sound source's impulse reponse. Default value a broadband sound source with 0dB amplitude. | |
'fs',fs | Set the sampling rate to fs. Default value takes the fs of SOFA template object. |
'fb_ch',fb_ch | Set the number of channels for the gammatone filterbank to fb_ch. Default value is 30. |
'fb_low',fb_low | Set the lowest frequency in the filterbank to fb_low. Default value is 300 Hz. |
'fb_high',fb_high | Set the highest frequency in the filterbank to fhigh. Default value is 15000 Hz. |
'ir_pad',len | Define the padding length for the impulse responses before being convolved with gammatone filters. Default value is 0.05 s. |
'targ_az',targ_az | Set the azimuth of a set of sound sources to targ_el. It can be a scalar or a column vector Default value is []: all target azimuths are used. Must have the same size of targ_el. |
'targ_el',targ_el | Set the elevation of a set of sound sources to targ_el. It can be a scalar or a column vector Default value is []: all target elevations are used. Must have the same size of targ_az. |
r. barumerli, p. majdak, j. reijniers, r. baumgartner, m. geronazzo, and f. avanzini. predicting directional sound-localization of human listeners in both horizontal and vertical dimensions. journal of the audio engineering society, may 2020. [ DOI ]
J. Reijniers, D. Vanderleist, C. Jin, C. S., and H. Peremans. An ideal-observer model of human sound localization. Biological Cybernetics, 108:169--181, 2014.