Voss Connection Detection
1
Detect a connector click using realtime code on Bela hardware
|
Go to the documentation of this file.
74 const char*
const logFileHeader =
"HP_8k_PEAKdB_MICT, HP_8k_PEAKdB_MICW, LP_500_PEAKdB_MICT, LP_500_PEAKdB_MICW, HP_2k_PEAKdB_VPU, LP_500_PEAKdB_VPU, HP_2k_PEAKFREQ_MICT, KURTOSIS_MICT, INVERSE_FREQ_VARIANCE_MICT, WAMP_MICT, TM3_MICT, ZC_MICT, KURTOSIS_MICW, INVERSE_FREQ_VARIANCE_MICW, WAMP_MICW, TM3_MICW, ZC_MICW, KURTOSIS_VPU, WAMP_VPU, TM3_VPU, ZC_VPU, TIMEDELAY_MICW_MICT, AVG_IMU_ABS_ROT, MAX_IMU_ABS_HP_ACC, PEDAL, CLASS";
87 bool _connDetected =
false;
88 AuxiliaryTask _detect_task;
129 void auxTaskCallback();
const char *const logFileHeader
Please be VERY SURE to keep this in sync with the list above, otherwise LARGE MISTAKES will be made.
ConnDetect(BelaContext *context)
Initalize the connection detector.
void addFilteredFrame(const FilteredFrame &filteredframe)
Add a new filtered frame of data to the buffer the detector.
bool connectionDetected()
The write task.
FeatureType
These are the features extracted from the filtered data. They should be self-explaining regarding the...
Time delay determination between two signals, based on cross-correlation and windowing of the data.
A class for opening a logfile, and writing data to a log.
friend void raw_conndetect_auxtask_callback(void *)
The main connection detection class.
Classifier class, performs the connection detection on given features.
array< float, NUMBER_FILTERED_CHANNELS > FilteredFrame
An array containing data with length corresponding to a single processed frame. Its length correspond...
std::array< float,(us) NUMBER_FEATURES > ComputedFeatures
@ INVERSE_FREQ_VARIANCE_MICW
array< Channel, NUMBER_FILTERED_CHANNELS > FilteredData
unsigned int us
Used to much to not abbreviate.
@ INVERSE_FREQ_VARIANCE_MICT
This class provides the calculations of single-signal features, computed from a single channel with l...
Configuration parameters for connection detection.
Class containing filtered data. It is responsible for aggregating signal samples at the full audio sa...