For a new AIR project I’ve been working on I wanted to include a chromatic tuner as a feature. That would be awesome, right?

While working on this feature, I’ve been doing some research into how exactly you even go about determining pitch using code, and have been playing with the SoundMixer.computeSpectrum() method lately. Unfortunately, that’s not looking like it’s going to be a possibility, as apparently the sound info from a microphone or line input isn’t available to the SoundMixer.

From the liveDocs

Because sound data from a microphone or from RTMP streams do not pass through the global SoundMixer object, the SoundMixer.computeSpectrum() method will not return data from those sources.

Bummer.

Hopefully this can be changed in future versions of the Flash Player.