Audio Analyzer.

Hello all.
Let me first start off by saying that I’m new to this. I’m studying lua a lot and muddling my way through creating an app. Been lots of fun so far.

Now to the question at had. I was looking through the new audio api features in Corona. I noticed that you can now make a sound tuner, aka the Guitar tuner. I was wondering if it is possible to use the audio api to make a multi frequency audio analyzer. Say something like Audalyzer or RTA Audio Analyzer. These are both on android. I’m not sure what’s available for iphone.

I just need to know if it’s possible with corona. Don’t need to know how to do it. That’s the challenge I plan on undertaking if it is possible. I would just like to know if it is possible before I start spending a lot of time trying to do it.

Thank You.

Will Lambirth [import]uid: 7733 topic_id: 2152 reply_id: 302152[/import]

Hi Will,

I’m not familiar with the apps you mentioned, but Corona 2.0’s audio API probably would not be sufficient in its current form. You could use it to produce a waveform display but probably not to display the frequency spectrum. In the future we might consider adding this as a feature if there was sufficient interest.

Best,

Alix [import]uid: 6787 topic_id: 2152 reply_id: 6586[/import]

I would just like to second my interest in this, as I think there are a lot of apps which could make use of this. Has there been any other interest or developments, Ansca?

Thanks,

Matt. [import]uid: 8271 topic_id: 2152 reply_id: 7240[/import]

Bump. Tried recording while playing music to get the freq, but difficult to test since one can’t record in the simulator…
[import]uid: 5186 topic_id: 2152 reply_id: 23913[/import]

in Flash now there is computeSpectrum: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#computeSpectrum()

prior to that we had to extract the values of an audio file with an external tool and use a text file that matched up with sound.position, but that’s no good in your case i guess as you want realtime analysis of an audio input right?

i would move this to the feature request forum as it’s not specifc to the Lua language.

realtime extractFrequency and extractSamples function/event would be good features

[import]uid: 6645 topic_id: 2152 reply_id: 23923[/import]

Hi snarla,
Can I play a mp3 file and display its waveform at the same time? Which API can I use to extract the waveform data?
Thanks! [import]uid: 35642 topic_id: 2152 reply_id: 25468[/import]

I am trying to make something like that too but have no idea how to start [import]uid: 38556 topic_id: 2152 reply_id: 26270[/import]

add your +1 here
http://developer.anscamobile.com/forum/2011/02/19/current-position-audio-file

there’s no way to accurately sync visuals to audio at the moment [import]uid: 6645 topic_id: 2152 reply_id: 26321[/import]