Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
|
This project is a minimal example of how to send data buffers from Bela to p5.js. You can find a sketch.js file which is a p5.js file that is rendered in a browser tab. Click the GUI button (next to the Scope button) in the IDE to see the rendering of this file. The p5.js file receives a buffer from Bela and displays the received data.
This example sends a buffer of data from the Bela render to the browser via a web socket: ``` gui.sendBuffer(0, gNumber); ``` where the first argument (0) is the index of the buffer to be read in sketch.js, and second argument is the element to be sent (in this case, just an int value).