ASFFT update

ASFFT project got some updates:

  • 1 dimensional FFT added
  • FFT Spectrum analyzer class added
  • updated methods that lets you work with FFT data via BitmapData object

Special thanx to Mario Klingemann for the help with the correction of setDataBitmapData and getDataBitmapData methods.

See Wiki page for more info on project

Demo of 1D FFT and FFTSpectrumAnalyzer usage
Pitch Shifter demo that uses FFT to transform sound data

11 Responses to “ASFFT update”


  1. 1 Nick Kuh

    Eugene – fantastic work! Would it be possible to share the source to your actual demo above (Demo of 1D FFT and FFTSpectrumAnalyzer usage)?

  2. 2 Eugene

    @Nick this example is presented at Wiki page

  3. 3 Nick

    Appologies if this is a dumb question but… if I run fftHelp.analyzeSpectrum(false) and don’t set the normalize variable to true I end up with a range of floats in the FFT bytearray which are often higher than 1, ie 10+. What is the maximum they can be when fftHelp.averageMode == FFTSpectrumAnalyzer.AVERAGE_LOGARITHMIC?

  4. 4 Eugene

    @nick if u are using any of Average functions result spectrum wouldn’t be in 0-1 range cause normalization performs only on RAW spectrum data not on average

  5. 5 Nick

    @Eugene – I’m seeing results of up to 200 for a spectrBand – I’m trying to work out how best to draw the spectrum but can only do so if I know how to work out what the maximum value of a spectrBand would be? Any clues?

  6. 6 Shawn

    You are the MAN!

  7. 7 kglad

    i’m doing something wrong when trying to add the march 15 update ASFFT.swc to my library path and am receiving the following error when trying to instantiate an FFT instance using:

    var fft:FFT=new FFT();

    1046: Type was not found or was not a compile-time constant: FFT.

    i click file/publish settings/flash/actionscript settings/library path/browse to swc file and navigate to ASFFT.swc which then appears, as expected, in my library path list:

    $(AppConfig)/ActionScript 3.0/libs
    F:\Flash\flash jobs\jeff_campagna\sound_equalizer\ASFFT.swc

    do you know what i’m doing wrong?

    thank you,
    keith
    p.s. i’m using cs4 and publishing for flash player 10.

  8. 8 kglad

    p.p.s that’s flash cs4, that i’m using.

  9. 9 Ole Jak

    Стоит добавить генератор вейв форм независимый от флеша (а то откроешь 10 окон во всех ФФТ работает а вейв формы нет…=) (И если будет вейф форма пусть ею можно будет про анализировать весь мп3 файл сразу а не по ходу проигрывания куски (чтобы получать нечто подобное тому что делают в SoundCloud)) Замечательная поделка!

  10. 10 Carlos Villena

    Hola soy de peru, el ejemplo de la wiki llego a correr pero no muestra nada en el trace y tampoco reproduce el sonido hay algo mas que debemos saber?

  11. 11 phbu

    doesn’t work… same problem as kglad…
    linkage seems to be wrong

Leave a Reply