I have an idea for a small game prototype but my coding skills are sadly very limited. But anyways here is my problem:
I want to drive(animate) a poly object in realtime by feeding in sound and use the values of the sound file for the y-value of the object.
Is something like this possible with unity?
Is there something like a sound effector?
(I am coming from the 3D Animation field and I am thinking about something like the Mograph Sound Effector in C4D if anyone here knows about it…)
I am sure you can code it…but yeah the question is if I can.
I would appreciate a short answer from a unity master about the complexity of such a function.
Unity doesn’t have anything like this built-in, but you might be able to do it with a C/C++ plug-in for Unity Pro. I’ve had a quick look for such a plug-in and found nothing, but that doesn’t mean it doesn’t exist.
I would say, though, that if your coding skills are indeed “sadly very limited”, then writing a plug-in yourself is a pretty formidable challenge. You’d really need to be sure you wanted to take it on.
You could try the FMOD plugin that was posted. That’s advertised as working with Indie.
You can see here a post where the audio has been analysed to produce some visuals, so you could possibly use something similar to achieve what you want.
It seems crazy that Unity does’t have a way to do this out of the box! Isn’t sound driven animation the fastest way to sync sound to actions for casual games? (A game using procedual animation is faster to download too)
Hi,
You can easily achieve this with audio.GetOutputData() to drive animations (or other properties) by sound power OR by frequencies with audio.GetSpectrumData().