Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups

Serial communication

This example demonstrates how to receive and transmit serial data from Bela. When a 'k' or 's' are received on the specified serial port, a kick or snare sound, respectively, are generated.

Serial data is received in a lower-priority thread (an AuxiliaryTask). From there, relevant data is passed to the audio thread via a Pipe. The AuxiliaryTask is also writing to the serial port.

The sound generator is very simple and "retro". IT is using a decaying noise burst for the snare sound and a decaying sine sweep for the kick