It looks like Sox only preserves some of the headers in Aiff file. Headers like INST are stripped. There are quite a few headers that get written from Logic Pro's auto sampler and I would like to keep those when manipulating these files. Thanks!
Looking at src/aiff.c, sox does recognize and read and write INST, MARK, COMT and other aiff chunks. It ignores INST if MARK isn't also present. Let's test with your file ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you please post an example aiff file with all the headers you want preserved?
Looking at src/aiff.c, sox does recognize and read and write INST, MARK, COMT and other aiff chunks. It ignores INST if MARK isn't also present. Let's test with your file ...
https://codeberg.org/sox_ng/sox_ng/issues/441
Resolved for INST and MARK.
It should already support COMT comments but for other chunks
it doesn't know about there is
https://codeberg.org/sox_ng/sox_ng/issues/446