On 2016-12-10 06:44, Dr. Mark Bugeja MD wrote: > The files have to match in name not size Oh? I think what you mean is that you WANT the final stereo file to have the same (note/pitch) name as the left & right parts. But from everything you've said, as each pair of left & right files are meant to have been created from the same original source file, they should have the exact same size. Putting a check that that's actually the case into a script that is automating merging is the kind of thing a programmer would do as an example of 'sanity checking'. It should always be true, but if it isn't it's better that the script stops what it's doing so the user can investigate why. On the other hand, if you already have lots of pairs of files which are not the same size... why is that? Maybe they contain the same number of audio samples, but different amounts of header data? If that's commonly the case I would add to my script calls of sox with the stat or stats (or both) effects to check in more detail that the audio in each file has common characteristics. I might also change code that expected files to be the same size, to something that (say) accepted only very small differences in size. It's normal for carefully-written programs to check that everything they do actually works, because a program can get into a terrible mess if it just issues commands and assumes that every one of them did exactly what was hoped. Depending somewhat on the language that a program is written in, maybe two thirds of the code in a program will be all about checking for problems and recovering from them. -- Jeremy Nicoll - my opinions are my own ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/xeonphi _______________________________________________ Sox-users mailing list Sox-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/sox-users