Voss Connection Detection
1
Detect a connector click using realtime code on Bela hardware
|
The main connection detection class. More...
#include <conndetect.h>
Public Member Functions | |
bool | connectionDetected () |
The write task. More... | |
ConnDetect (BelaContext *context) | |
Initalize the connection detector. More... | |
~ConnDetect () | |
void | addFilteredFrame (const FilteredFrame &filteredframe) |
Add a new filtered frame of data to the buffer the detector. More... | |
Friends | |
void | raw_conndetect_auxtask_callback (void *) |
The main connection detection class.
Definition at line 83 of file conndetect.h.
ConnDetect::ConnDetect | ( | BelaContext * | context | ) |
Initalize the connection detector.
context | A BelaContext pointer, see Bela for contents. Most important attributes: |
Definition at line 68 of file conndetect.cpp.
ConnDetect::~ConnDetect | ( | ) |
Definition at line 90 of file conndetect.cpp.
void ConnDetect::addFilteredFrame | ( | const FilteredFrame & | filteredframe | ) |
Add a new filtered frame of data to the buffer the detector.
filteredframe | Filtered frame of data. |
Definition at line 101 of file conndetect.cpp.
bool ConnDetect::connectionDetected | ( | ) |
The write task.
Call this function to see whether a connection has been detected. Should be called from out of render().
Definition at line 120 of file conndetect.cpp.
|
friend |
Definition at line 63 of file conndetect.cpp.