docs: How to get value of frequencies? #21
Replies: 6 comments
-
Hi, Getting a whole audio frequency domain at once is not yet planned |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer.
|
Beta Was this translation helpful? Give feedback.
-
I notice now that I didn't exposed getAudioTexture(), it's not available on Flutter side. So you will need to use getAudioTexture2D(). Using getAudioTexture2D() you will get back a matrix with 256 rows of 512 floats. You could consider only the 1st row as it represents the latest data. So this first row is composed by:
You can access these floats with
and you can use it with something like this:
Here you can see the widget used in the I didn't tested and I don't know much about audio processing, but hope this helps!
I move this issue to Discussion, it maybe be useful to others! |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
No reply? |
Beta Was this translation helpful? Give feedback.
-
Oh! Sorry, I missed it! Wave data is in the -1~1 range because I choose to use |
Beta Was this translation helpful? Give feedback.
-
Hello.
I want to plot a Line chart from frequency domain of a wav file (x-axis: Frequencies, y-axis: decibel values).
How can I get value of frequencies?
Beta Was this translation helpful? Give feedback.
All reactions