Producing your first bleep!
This sketch is the hello world of embedded interactive audio. Better known as bleep, it produces a sine tone.
The frequency of the sine tone is determined by a global variable,
gFrequency (line 12). The sine tone is produced by incrementing the phase of a sin function on every audio frame.
In render() you'll see a nested for loop structure. You'll see this in all Bela projects. The first for loop cycles through 'audioFrames', the second through 'audioChannels' (in this case left 0 and right 1). It is good to familiarise yourself with this structure as it's fundamental to producing sound with the system.
Generated on Mon Nov 11 2019 06:29:50 for Bela by 1.8.11