Mercurial > hg > beaglert
diff projects/audio_in_FFT/render.cpp @ 269:ac8eb07afcf5
Oxygen text added to each render.cpp file for the default projects. Text includes project explanation from Wiki, edited in places.
Empty project added as a default project.
Doxyfile updated. Each of the project locations added to INPUT configuration option. Consider just watching the whole project file so all new projects are automatically pulled through.
author | Robert Jack <robert.h.jack@gmail.com> |
---|---|
date | Tue, 17 May 2016 15:40:16 +0100 |
parents | 3c3a1357657d |
children |
line wrap: on
line diff
--- a/projects/audio_in_FFT/render.cpp Wed May 11 10:29:23 2016 +0100 +++ b/projects/audio_in_FFT/render.cpp Tue May 17 15:40:16 2016 +0100 @@ -1,3 +1,12 @@ +/* + ____ _____ _ _ +| __ )| ____| | / \ +| _ \| _| | | / _ \ +| |_) | |___| |___ / ___ \ +|____/|_____|_____/_/ \_\.io + + */ + /* * render.cpp * @@ -5,6 +14,31 @@ * Author: parallels */ +/** +\example 4_audio_FFT + +Fast Fourier Transform +---------------------- + +This sketch performs an FFT (Fast Fourier Transform) on incoming audio. It uses +the NE10 library, included at the top of the file (line 11). + +Read the documentation on the NE10 library [here](http://projectne10.github.io/Ne10/doc/annotated.html). + +The variables `timeDomainIn`, `timeDomainOut` and `frequencyDomain` are +variables of the struct `ne10_fft_cpx_float32_t` [http://projectne10.github.io/Ne10/doc/structne10__fft__cpx__float32__t.html](http://projectne10.github.io/Ne10/doc/structne10__fft__cpx__float32__t.html). +These are declared at the top of the file (line 21), and memory is allocated +for them in `setup()` (line 41). + +In `render()` a `for` loop performs the FFT which is performed on each sample, +and the resulting output is placed on each channel. + +*/ + + + + + #include <BeagleRT.h> #include <rtdk.h>