Audio Controlled Particles.

CG_Nema
Posts: 67
Joined: Fri May 31, 2013 5:23 am

Audio Controlled Particles.

Post by CG_Nema » Tue Jul 09, 2013 6:34 am

An idea I've had for a while. Imported the audio as keyframes through a tab delimited txt file, with python. what do you guys think?

http://www.youtube.com/watch?v=xDcCnGS6szA

ValentinD
Posts: 26
Joined: Tue Jun 04, 2013 1:13 pm

Re: Audio Controlled Particles.

Post by ValentinD » Tue Jul 09, 2013 10:06 am

Hi !

I have an error from youtube, I can't see the video, it is blocked for my country (music reason)...

User avatar
Otuama
Posts: 162
Joined: Sun Jun 27, 2010 2:29 pm

Re: Audio Controlled Particles.

Post by Otuama » Tue Jul 09, 2013 10:58 am

Yeah, I've been wanting to do that too but never got around to it.

@ValentinD

He could maybe post it without the music but that'd defeat the purpose :roll:
Otuama - Vimeo
'Strength does not come from physical capacity. It comes from an indomitable will.' - Gandhi

User avatar
LuisMiguel
Posts: 528
Joined: Fri Jun 04, 2010 2:37 pm

Re: Audio Controlled Particles.

Post by LuisMiguel » Tue Jul 09, 2013 12:43 pm

Hi,

I remember there was a script long time ago, for RF4 I think, where you had the posibility to make simulation by using a audio file.

luisM.

CG_Nema
Posts: 67
Joined: Fri May 31, 2013 5:23 am

Re: Audio Controlled Particles.

Post by CG_Nema » Tue Jul 09, 2013 8:09 pm

LuisMiguel wrote:Hi,

I remember there was a script long time ago, for RF4 I think, where you had the posibility to make simulation by using a audio file.

luisM.
I wish I knew enough about python to figure that out. I needed to use intermediary software to convert the audio file to a txt file with decibel values. I did a little research but couldn't find a way to do it. Not without downloading some extra modules (gStreamer) I think.

CG_Nema
Posts: 67
Joined: Fri May 31, 2013 5:23 am

Re: Audio Controlled Particles.

Post by CG_Nema » Tue Jul 09, 2013 8:10 pm

ValentinD wrote:Hi !

I have an error from youtube, I can't see the video, it is blocked for my country (music reason)...
Yes, I don't know what to do about that, it's quite annoying. Maybe I'll put it on Vimeo.

User avatar
Alex
Site Admin
Posts: 143
Joined: Mon Jun 14, 2010 9:35 am

Re: Audio Controlled Particles.

Post by Alex » Wed Jul 10, 2013 10:06 am

Hi guys,

I made some time ago some tests with Python and C++ and wav files.
My conclusion was that it is not really worth the effort and I would use the same approach of using third party software to extract the wave values.
Luis Miguel just showed me that you can use an audio file in 3D Studio Max to animate an object.
If you export that object as a SD file, RealFlow will have access to the audio values.

In any case, feel free to watch here the result of my tests:
https://www.dropbox.com/s/ewobaydbo2zxonb/lp.mov

Of course, the one posted by Nema is 10000 times better. :)
Alex Ribao
RealFlow Team
Next Limit Technologies

User avatar
Otuama
Posts: 162
Joined: Sun Jun 27, 2010 2:29 pm

Re: Audio Controlled Particles.

Post by Otuama » Wed Jul 10, 2013 2:39 pm

What 3rd party software did you use and what were the results of the output, float values?

It's also possible to do some kind of audio controlled animation in Maya.

I wonder what the possibilities of doing it this way would be because the object animation can be keyed.

Here's a quick test.

http://www.youtube.com/watch?v=3BJldD1sXb8&hd=1

Quite an interesting topic, this.
Otuama - Vimeo
'Strength does not come from physical capacity. It comes from an indomitable will.' - Gandhi

User avatar
Alex
Site Admin
Posts: 143
Joined: Mon Jun 14, 2010 9:35 am

Re: Audio Controlled Particles.

Post by Alex » Wed Jul 10, 2013 3:08 pm

Hi Sean,

the video appears private for me.

If you were asking me about what 3rd party software I used, the answer is none.
However, for Python I had to install the numpy module to perform many of the operations over the samples.
Alex Ribao
RealFlow Team
Next Limit Technologies

User avatar
Otuama
Posts: 162
Joined: Sun Jun 27, 2010 2:29 pm

Re: Audio Controlled Particles.

Post by Otuama » Wed Jul 10, 2013 4:11 pm

Whoops. You should be able to see it now. All it shows is the sound plugged into the objects scale. The changes happen quite fast but you can kind of see motion going along with the track.

http://www.youtube.com/watch?v=3BJldD1sXb8&hd=1

Hmm, I downloaded the Anaconda Python distribution last week, that comes with numpy. Will have to look more into this when I have time. But who has the time ? :cry:
Otuama - Vimeo
'Strength does not come from physical capacity. It comes from an indomitable will.' - Gandhi

Post Reply