Voss Connection Detection
1
Detect a connector click using realtime code on Bela hardware
|
Go to the documentation of this file.
24 for (
us i = 0; i < samples.size(); i++) {
25 data[i][write_ptr] = samples[i];
void addFilteredFrame(const FilteredFrame &)
Addd a new set of samples to the buffers.
FilteredDataBuffer(const float &fs, bool half_offset=false)
Initialize a RawDataBuffer, which is filled by the main loop.
void clear()
Clear the buffer, i.e. set the write pointer back to 0.
const us NUMBER_FILTERED_CHANNELS
array< float, NUMBER_FILTERED_CHANNELS > FilteredFrame
An array containing data with length corresponding to a single processed frame. Its length correspond...
FilteredData data
Raw sample buffers containing the data.
bool full() const
Check if buffer is full. A full buffer should be clear() - ed afterwards (prior to extracting the sta...
const us BLOCKSIZE
The size of a buffer in a block. Should be an integer number of samples, and preferrably a integer po...
unsigned int us
Used to much to not abbreviate.
Configuration parameters for connection detection.
us timeStamp
Storage for statistics data.