The Daily Click ::. Forums ::. Klik Coding Help ::. Audio analyzing.
 

Post Reply  Post Oekaki 
 

Posted By Message

blubblub



Registered
  29/02/2012 23:35:38
Points
  14
24th April, 2012 at 24/04/2012 16:03:55 -

Hello

Okay, i'm not sure if anyone can help me here, because i'm not sure if it's even possible with Fusion. But it's worth a try.

I need to be able to load and analyze audio. Think of a spectrum analyzer, FFT, etc.

Is this possible in Fusion? Maybe if i use a script object like the lua object?

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
24th April, 2012 at 24/04/2012 16:48:14 -

Rather you than me...
What *exactly* are you trying to do?

 
n/a

blubblub



Registered
  29/02/2012 23:35:38
Points
  14
24th April, 2012 at 24/04/2012 18:19:17 -

> Rather you than me...

What do you mean?

> What *exactly* are you trying to do?

I want to load a mp3/wav/whatever and read out the bpm, frequencies, volume changes, left and right channel, etc.


 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
24th April, 2012 at 24/04/2012 22:35:11 -

By "rather you than me", I just mean that I think it's going to be extremely difficult, and I'm glad it's not me who has to figure it out.
Anyway, start by downloading all the audio extensions for MMF2, and trying them out - just in case there's an easy way.

Failing that, the PCM wave file structure is pretty simple - you should be able to read it using one of the binary extensions (I doubt you'd get far with mp3/wma/etc). From that, it should be easy to get the volume of each channel. Getting the frequency spectrum and BPM would be *much* harder - like you say, it would require some form of fourier transform, which is going to be tough unless you're a maths genius. Doing any of this in realtime is probably a non-starter.

 
n/a

blubblub



Registered
  29/02/2012 23:35:38
Points
  14
25th April, 2012 at 25/04/2012 11:37:57 -

Where can i find those extensions? I only have the ones that are packed with the installer.

You are right. I read around in some Py and Lua forums, there are some libraries out there but it's *really* advanced stuff. Well, too advanced for me, to be honest. I just thought people like to do these rythm games and maybe someone did something like this in Fusion already. With an extension or something that i could use for my purpose.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click