python-sofa icon indicating copy to clipboard operation
python-sofa copied to clipboard

API for duplicating a SOFA file

Open miccio-dk opened this issue 4 years ago • 2 comments

There seem to be no functionality for loading an HRTF set and saving it into a different file (for example, after having edited its content). Would you recommend a way of implementing this?

miccio-dk avatar Oct 13 '20 13:10 miccio-dk

Shouldn't this be fairly straight forward by adapting the example which creates a new file from scratch? https://python-sofa.readthedocs.io/en/latest/examples/SOFA-file-access.html#Create-new-SimpleFreeFieldHRIR-.sofa-file

HaHeho avatar Oct 15 '20 18:10 HaHeho

Wouldn't it require manually going through all of the fields in "original" HRTF file and applying their content to the new one? The example doesn't quite show how to fill in the HRIR data and the other fields.

miccio-dk avatar Oct 17 '20 16:10 miccio-dk