View Full Version : Frequency Variable? its a toughie.

11-03-2007, 08:01 AM
Hey everyone, I'm planning on making a game that requires a player to make a certain frequency noise through their microphone, like a 'simon says' for noises.

I've been searching the internet for ages now, and I can't find a single thing.

Is there any way of getting the Khz frequency of a sound using javascript?

Thanks in advance. Hope you can help

11-04-2007, 07:08 PM
Search for 'Fast Fourier Transform', that's the general concept (tough one though) that you have to understand. Flash has one built into the spectrum analyzer, and I'm sure there's a few lying around for javascript or similar somewhere...

11-05-2007, 12:17 AM
What do you mean by flash havng one built into the spectrum analyzer? Does flash have an inbuilt one or is there source code on the internet?

11-05-2007, 01:04 AM
Flash CS3 ships with a spectrum analyzer.


11-05-2007, 12:29 PM
Oh ok, thanks. I'm still on MX 2004 Pro, so I've gotta wait a bit until I can buy a computer with the min sys req's. Thanks a lot for your help