music app

Hi,

I’ve been tasked with making a music app, and I need to record everything that unity is currently playing with its samples etc to an ios file. Think of a piano app sort of thing, and whatever unity is currently playing, gets recorded into a file which I save.

So how to record and save what is currently playing?

Could you please point me in the right direction for this on iOS ?

Optimally?
Not with Unity at all out of my view cause all the functionality you will need only exists on the lower level audio frameworks of iOS itself like CoreAudio and deeper down, as such you won’t play sounds from within unity at all likely. Thats already a granted thing due to the fact that you likely will want full control over audio and lag less audio etc

Thanks for the answer but I didn’t quite understand:

All I want is simple record of sound samples playing from unity.

  1. unity makes the sound
  2. xcode or something records it to a file

Is this possible, and if it is, please point me the direction. I don’t need anything fancy…

What you described is fairly fancy, there’s nothing built-in within Unity for recording audio. An app like you’ve described would be something you’d have to build from scratch I believe.

Thanks guys! I guess it means dipping my toe into shark infested waters. Thats a really bad joke since shark is the profiler in xcode. I must be getting old.

…hang on - granted this is not exactly what you were looking for, but there are ways to achieve something similar using Unity alone.

Depending upon how complex the system is, you could maybe do something like this:

http://forum.unity3d.com/threads/78003-Audio-stepsequencer-and-they-said-it-couldnt-be-done!?highlight=Audio+stepsequencer

You won’t end up with an exported file, but you could make an app which will store a user created musical arrangement, and replay it fairly accurately.

Does this help keeping you out of the shark infested waters I wonder?

R

I think it is a good idea, I shall take a closer look! thank you for your help :slight_smile:

don’t forget that you cannot somehow ‘intercept’ data being played (unless it’s you who plays them from a buffer ) on iOS and read bytes as they fly to audio output
i’d say forget unity for this one