Combining Audio Files...Possible?

Discussion in 'iOS Programming' started by Nitrex88, Jun 23, 2009.

  1. Nitrex88 macrumors newbie

    Joined:
    Dec 30, 2007
    #1
    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
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    Can you do this with an existing sound editing app, like Audacity or does this have to be done in your code?
     
  3. Nitrex88 thread starter macrumors newbie

    Joined:
    Dec 30, 2007
    #3
    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.
     
  4. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #4
    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.
     
  5. lazydog macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #5
    If you want to play separate audio files one after the other seamlessly then you can use Audio Queue services.

    b e n
     

Share This Page