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

Trill Square oscillator pad

This project showcases an example of how to communicate with the Trill Square sensor using the Trill library and sonifies the X-Y position and size of the touch via an oscillator.

The Trill sensor is scanned on an auxiliary task running parallel to the audio thread and the X-Y position and size stored on global variables.

The vertical position of the touch is mapped to frequency, while the horizontal position maps to left/right panning. Touch size is used to control the overal amplitude of the oscillator. Changes in frequency, amplitude and panning are smoothed using LP filters to avoid artifacts.