python-sofa
python-sofa copied to clipboard
API for duplicating a SOFA file
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?
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
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.