Skip to content

How do I get the amplitude? #206

Answered by alnitak
icnahom asked this question in Q&A
Mar 21, 2025 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Yes, using audio_data, you can get the audio data as linear which gives you a Float32List with 256 floats of wave data and the other 256 of FFT data. I think that using the FFT is what you are looking for.

So the procedure could be to do an average of values from about 20(+256) to about 70(+256) of the list and the result could be used to "bounce" the circle.

I just released an audio visualizer package that could inspire you: audio_flux

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@icnahom
Comment options

Comment options

You must be logged in to vote
2 replies
@icnahom
Comment options

@icnahom
Comment options

Answer selected by icnahom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants