joshbuhler.com

SoundMixer.computeSpectrum woes

by Josh on Sep.11, 2007, under ActionScript

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.



:
2 comments for this entry:
  1. Matt

    So annoying! I wanted to do the same thing…

  2. Lawrie

    Any news on if this is available through the new Flash Player 10 sound features?

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...