comparison examples/audio_in_FFT/render.cpp @ 372:db2fe4e1b88e prerelease

Doxygen content added to each example render.cpp. References to AnalogReadFrame etc. removed from doxygen content.
author Robert Jack <robert.h.jack@gmail.com>
date Thu, 09 Jun 2016 18:16:05 +0100
parents e4392164b458
children 3bed6b09223c
comparison
equal deleted inserted replaced
371:361d0c2335cf 372:db2fe4e1b88e
1 /*
2 ____ _____ _ _
3 | __ )| ____| | / \
4 | _ \| _| | | / _ \
5 | |_) | |___| |___ / ___ \
6 |____/|_____|_____/_/ \_\.io
7
8 */
9
1 /* 10 /*
2 * render.cpp 11 * render.cpp
3 * 12 *
4 * Created on: Oct 24, 2014 13 * Created on: Oct 24, 2014
5 * Author: parallels 14 * Author: parallels
6 */ 15 */
7 16
17 /**
18 \example 4_audio_FFT
19
20 Fast Fourier Transform
21 ----------------------
22
23 This sketch performs an FFT (Fast Fourier Transform) on incoming audio. It uses
24 the NE10 library, included at the top of the file (line 11).
25
26 Read the documentation on the NE10 library [here](http://projectne10.github.io/Ne10/doc/annotated.html).
27
28 The variables `timeDomainIn`, `timeDomainOut` and `frequencyDomain` are
29 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).
30 These are declared at the top of the file (line 21), and memory is allocated
31 for them in `setup()` (line 41).
32
33 In `render()` a `for` loop performs the FFT which is performed on each sample,
34 and the resulting output is placed on each channel.
35 */
8 36
9 #include <Bela.h> 37 #include <Bela.h>
10 #include <rtdk.h> 38 #include <rtdk.h>
11 #include <NE10.h> // neon library 39 #include <NE10.h> // neon library
12 #include <cmath> 40 #include <cmath>