comparison examples/basic/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 1feb9c23ac57
children 9dc5a0ccad25
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 1_basic_helloworld
19
20 Producing your first bleep!
21 ---------------------------
22
23 This sketch is the hello world of embedded interactive audio. Better known as bleep, it
24 produces a sine tone.
25
26 The frequency of the sine tone is determined by a global variable, `gFrequency`
27 (line 12). The sine tone is produced by incrementing the phase of a sin function
28 on every audio frame.
29
30 In render() you'll see a nested for loop structure. You'll see this in all Bela projects.
31 The first for loop cycles through 'audioFrames', the second through 'audioChannels' (in this case left 0 and right 1).
32 It is good to familiarise yourself with this structure as it's fundamental to producing sound with the system.
33 */
8 34
9 #include <Bela.h> 35 #include <Bela.h>
10 #include <cmath> 36 #include <cmath>
11 #include <Utilities.h> 37 #include <Utilities.h>
12 38