Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Nitrex88

macrumors newbie
Original poster
Dec 30, 2007
11
0
I'm looking for a way to combine separate audio files in one audio file. The starting separate files i can have are WAV or CAF (doesnt matter to me) and I would like to stitch them together into one file such as MIDI or anything other file type thats possible. I'm not sure if this is possible on iPhone but I would be able to make a mac desktop application to export to if needed to do the stitching together there. So pretty much what I'm asking is does anybody know of a not too complex (but share anyway even if insanely complex) way on iPhone OR OS X to combine separate audio files into one file. Thanks!


Nick
 
Can you do this with an existing sound editing app, like Audacity or does this have to be done in your code?
 
Sorry I should have specified. I need to implement this in code in my program which has tons of small sound effect (notes). I would like to stitch hem together into a song, i just need a way to programtically combine sound effect files.
 
If the samples are uncompressed and at the same sample rate, then mixing can be as trivial as addition or scaled addition, after detaching the file headers. If the files contain various different sample rates, then you may have to write a fair portion of a sampling synthesizer. If you really want midi output, then you're looking at something like a post-graduate level research project in pattern recognition, depending on the input constraints.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.