Skip to content

Simple FFT #249

Answered by pschatzmann
MoriXTV asked this question in Q&A
Jun 27, 2022 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

I suggest that you have a look at the AudioTools project and that you read the related documentation in the Wiki of the AudioTools.

You can find a simple FFT example in the audio kit folder: It is just like writing to any Audio Sink!

Here is an a2dp example using the AudioTools. Just replace the write to i2s with a write to the FFT stream.

However if you plan to update a screen with this information, the screen update logic might need to be in it's separate task, so that the audio output does not get delayed. Here is an example that uses a separate task

Replies: 3 comments 1 reply

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
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