Avid Pro Audio Community

Avid Pro Audio Community

How to Join & Post  •  Community Terms of Use  •  Help Us Help You

Knowledge Base Search  •  Community Search  •  Learn & Support


Avid Home Page

Go Back   Avid Pro Audio Community > General Discussion & Off Topic > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-10-2024, 01:11 AM
Darryl Ramm Darryl Ramm is offline
Member
 
Join Date: Nov 2010
Location: USA
Posts: 21,131
Default affix, a macOS command line utility for repairing AIFF/AIFF-C file sample rates

Here is a simple macOS command line utility for repairing incorrect sample-rates of AIFF/AIFF-C files. https://github.com/Darryl-Ramm/affix

A .dmg disk image containing a universal binary (i.e. Intel and Apple Silicon) command line program can be downloaded on that github page.

Occasionally folks find out the hard way how it's possible to end up with audio files that contain audio that is not at the sample rate that the file believes it is at. Meaning the sample rate in the header of the AIFF/AIFF-C or WAV file is not the correct value. It can sometimes be a pain getting such a file to the right sample rate. Since I was messing around with AIFF/AIFF-C files anyhow I decided to share this simple utility. See the Readme.md file on github or us the affix -h help option.

In the case of AIFF/AIFF-C files the sample rate is stored as a 80 bit floating point value in the file's COMM chunk. affix is very simple, and just overwrite that value in-situ. That is the only change made, no changes are made to the audio content. affix does attempt to do some basic file validation, and should standard and many weird versions of AIFF/AIFF-C files. You should be able to just keep playing with changing the sample rate in the file until playback sounds correct, e.g. when testing by playing back a file with an audio player program. For importing into Pro Tools sessions the content may still need to be converted to the session sample rate, but at least now it will be starting with the correct sample rate information in the file.

There is some checking of the file format and the program should be fairly robust. But, but, but... read the non-liability terms in the license, be careful and always be aware of folk handing out random software... make sure you have content backed up before messing with this or any other utility.

affix is licensed under the MIT open source license. There is enough code in the program to show basic handling of AIFF/AIFF-C files that might be handy for others, say getting started with AIFF/AIFF-C file repair. It would be fairly straightforward to implement a WAV file version of affix, or to add WAV file support to this program. But I'm kinda busy right now.
Reply With Quote
  #2  
Old 04-10-2024, 07:53 AM
tope d's Avatar
tope d tope d is offline
Avid
 
Join Date: Jul 2015
Location: Worldwide
Posts: 1,610
Default Re: affix, a macOS command line utility for repairing AIFF/AIFF-C file sample rates

Quote:
Originally Posted by Darryl Ramm View Post
Here is a simple macOS command line utility for repairing incorrect sample-rates of AIFF/AIFF-C files. https://github.com/Darryl-Ramm/affix

A .dmg disk image containing a universal binary (i.e. Intel and Apple Silicon) command line program can be downloaded on that github page.

Occasionally folks find out the hard way how it's possible to end up with audio files that contain audio that is not at the sample rate that the file believes it is at. Meaning the sample rate in the header of the AIFF/AIFF-C or WAV file is not the correct value. It can sometimes be a pain getting such a file to the right sample rate. Since I was messing around with AIFF/AIFF-C files anyhow I decided to share this simple utility. See the Readme.md file on github or us the affix -h help option.

In the case of AIFF/AIFF-C files the sample rate is stored as a 80 bit floating point value in the file's COMM chunk. affix is very simple, and just overwrite that value in-situ. That is the only change made, no changes are made to the audio content. affix does attempt to do some basic file validation, and should standard and many weird versions of AIFF/AIFF-C files. You should be able to just keep playing with changing the sample rate in the file until playback sounds correct, e.g. when testing by playing back a file with an audio player program. For importing into Pro Tools sessions the content may still need to be converted to the session sample rate, but at least now it will be starting with the correct sample rate information in the file.

There is some checking of the file format and the program should be fairly robust. But, but, but... read the non-liability terms in the license, be careful and always be aware of folk handing out random software... make sure you have content backed up before messing with this or any other utility.

affix is licensed under the MIT open source license. There is enough code in the program to show basic handling of AIFF/AIFF-C files that might be handy for others, say getting started with AIFF/AIFF-C file repair. It would be fairly straightforward to implement a WAV file version of affix, or to add WAV file support to this program. But I'm kinda busy right now.
Thank you, Darryl!
Will check this out!
__________________
-Tope

To create a support case with Avid Support, go to https://www.avid.com/learn-and-suppo...-music-support

www.topedomingo.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
.aiff and .snd file converter to .wav music Pro Tools TDM Systems (Mac) 6 08-17-2004 06:19 PM
Bouncing to disk problems (wav, aiff-c, mp3, aiff) TinglerFran 003, Mbox 2, Digi 002, original Mbox, Digi 001 (Win) 4 12-30-2003 11:38 PM
utility to open and save SDII to aiff or wav?? Lorddiagram General Discussion 2 11-03-2003 07:10 PM
Sample Cell and AIFF Sounds livstone Digidesign Hardware & Software 2 10-06-2000 12:52 AM
Bounce and export mix as AIFF file DannyVanSpreuwel Tips & Tricks 3 09-06-2000 11:51 AM


All times are GMT -7. The time now is 09:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited. Forum Hosted By: URLJet.com