Skip to content

Minor functions and fixes for hrtf and binaural#75

Closed
pfriedrich-hub wants to merge 158 commits intoDrMarc:masterfrom
pfriedrich-hub:master
Closed

Minor functions and fixes for hrtf and binaural#75
pfriedrich-hub wants to merge 158 commits intoDrMarc:masterfrom
pfriedrich-hub:master

Conversation

@pfriedrich-hub
Copy link
Copy Markdown
Contributor

hrtf.py:

  • coordinate conversion works correctly now
  • add function to get source idx from coordinates
  • use native frequency resolution in HRTF.tfs_from_sources if arg n_bins not specified
  • create default dictionary for listener attribute when initializing HRTF object from slab filterbank or numpy array
  • add option for left or right ear in tfs_from_sources



binaural.py:

  • azimuth_to_itd now works for sources behind the listener
  • rework make_interaural_level_spectrum() and add slab/data/mit_kemar_ils.pkl


pfriedrich-hub and others added 30 commits January 28, 2022 05:44
…n if provided sofa file did not include FIR data
HRTF class is now able to read sofa files in the 'SimpleFreeFieldHRTF' convention, extract and store transfer functions as list of slab.Filter objects, which can be applied to a sound by HRTF.apply()
filter.py Filter.apply() does no longer require samplerate for fourier filters
hrtf.py HRTF.apply() should now apply DTFs correctly
Filter.tf() now handles complex filter arrays
edit sources in write_sofa
edit get datatype in init
edit get datatype in sofa_get_DTF()
pfriedrich-hub and others added 27 commits July 19, 2024 13:57
…TF object from slab filterbank or numpy array
…m for the left and right ear is returned

adjust interaural_level_spectrum() accordingly
…ations of +/- 90° (e.g. cartesian x=-1e-07)
pull latest changes from head repository
add kemars interaural level spectrum (slab/data/~/projects/slab/slab/data/mit_kemar_ils.pkl)
@DrMarc
Copy link
Copy Markdown
Owner

DrMarc commented Jul 9, 2025

coordinate systems need to be checked again before merging!

@DrMarc DrMarc closed this Jul 9, 2025
@pfriedrich-hub
Copy link
Copy Markdown
Contributor Author

pfriedrich-hub commented Jul 9, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants