HydrogenAudio

Hydrogenaudio Forum => General Audio => Topic started by: bibbli on 2012-11-01 08:27:44

Title: combining 2 multichannel 24/96 wav files
Post by: bibbli on 2012-11-01 08:27:44
Hoping there's a simple tool to join 2 wav files that are 6ch, 24/96 for gapless playback. Thanks for any sage advice.
Title: combining 2 multichannel 24/96 wav files
Post by: chi on 2012-11-01 10:36:45
Hoping there's a simple tool to join 2 wav files that are 6ch, 24/96 for gapless playback. Thanks for any sage advice.


SoX (http://sox.sourceforge.net/) would do it:
Code: [Select]
sox file1.wav file2.wav output.wav
Title: combining 2 multichannel 24/96 wav files
Post by: bibbli on 2012-11-04 04:20:23
Awesome, thanks, I'll give it a shot!
Title: combining 2 multichannel 24/96 wav files
Post by: bibbli on 2012-11-04 06:42:25
Got it downloaded, read through it thoroughly, and tried hard to run it from the terminal on a mac but it may be over my head.

tractor:/Applications/sox tractor$ sox 01Shine On.flac 02Welcome.flac 03both.flac
Title: combining 2 multichannel 24/96 wav files
Post by: newman079 on 2012-11-04 07:02:09
Hoping there's a simple tool to join 2 wav files that are 6ch, 24/96 for gapless playback. Thanks for any sage advice.


audio joiner (http://www.magicaudiotools.com/magic-audio-joiner)
Title: combining 2 multichannel 24/96 wav files
Post by: greensdrive on 2012-11-04 07:46:21
sox is not "simple", but should work.

flac is not wav, so sox will probably require libflac for you to use flac support. also, your command line is probably wrong.  see http://sox.sourceforge.net/sox.html (http://sox.sourceforge.net/sox.html) for the man page, which is valuable reading. maybe read especially about the "--combine" option. you downloaded the precompiled one, right? I mean, that one comes with flac support, according to the README.osx file. you can find it as "sox-14.4.0-macosx.zip" in this directory: http://sourceforge.net/projects/sox/files/sox/14.4.0/ (http://sourceforge.net/projects/sox/files/sox/14.4.0/)

in short, try:
sox --combine concatenate 01Shine\ On.flac 02Welcome.flac 03both.flac
OR:
sox --combine merge 01Shine\ On.flac 02Welcome.flac 03both.flac

yes, I added the '\', and yes, it is important.
Title: combining 2 multichannel 24/96 wav files
Post by: bibbli on 2012-11-04 20:22:49
Thank you...pretty obvious I'm a newbie to command line moves. Kind of hitting the wall regarding why I still have my user name at the end of my command line, so I'll be looking into that. Assuming I'm ok by cd'ing to my sox directory, then running the command with files also inside that directory.

Thanks, definitely scoured/scouring the sourceforge.net page + definitely DL'd the version you mention (14.4.0). Also assuming the osx version doesn't care that I'm running Tiger on a PPC since it's a command line tool.

I've converted the flacs to wav and output as wav, but no go:

tractor:/Applications/sox tractor$ sox --combine concatenate 01ShineOn.wav 02Welcome.wav 03both.wav
-bash: sox: command not found
tractor:/Applications/sox tractor$ ./sox --combine concatenate 01ShineOn.wav 02Welcome.wav 03both.wav
-bash: ./sox: cannot execute binary file

Title: combining 2 multichannel 24/96 wav files
Post by: chi on 2012-11-05 00:58:38
Also assuming the osx version doesn't care that I'm running Tiger on a PPC since it's a command line tool.
-bash: ./sox: cannot execute binary file


This may actually be the problem, if the MacOS distribution is compiled for Intel only (which I don’t know, I never use a Mac). You should be able to find out by running
Code: [Select]
file ./sox
This will tell you if it is a universal binary or compiled for PowerPC or Intel only.
Title: combining 2 multichannel 24/96 wav files
Post by: bibbli on 2012-11-05 02:12:49
Thank you. Mach-O executable i386! (which if I'm right is good news!)
Title: combining 2 multichannel 24/96 wav files
Post by: phofman on 2012-11-05 15:20:47
Thank you. Mach-O executable i386! (which if I'm right is good news!)


I am afraid this is bad news, it is compiled for the intel mac version.

E.g. here http://traverso-daw.org/mac-os-x.html (http://traverso-daw.org/mac-os-x.html) they mention sox being part of the install for ppc.