Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
|
This example will work with all types of Trill sensor and will visualise the raw reading from each capacitive channel.
We are using the Trill library to read from the sensor and the Gui library for the visualisation. The first thing to do is make sure that the correct sensor type is given to touchSensor.setup()
. If you have changed the address of the sensor then you will need to add the new address to this function too.
The Trill sensor is scanned on an auxiliary task running parallel to the audio thread and is read in DIFF mode giving the differential reading of each channel on the sensor.
Readings are sent to the integrated p5.js GUI every few milliseconds.
Once you run the project you will be able to visualise the value of each capacitive pad on the sensor by clicking the GUI button in the IDE. Each bar represents a pad on the sensor.