Voss Connection Detection
1
Detect a connector click using realtime code on Bela hardware
|
Go to the documentation of this file.
3 #if CONNDETECT_THRESHOLD_BASED == 1
9 bool conndetect =
true;
69 #elif CONNDETECT_ML_BASED == 1
72 #include "converted_ml_model.h"
139 normalized[i] = (ft[i] - NORMALIZE_OFFSET[i])/NORMALIZE_SCALE[i];
141 array<float, 12> used_features = {
156 Eloquent::ML::Port::SVM svm;
157 return svm.predict((
float *)used_features.data()) == 0;
162 #error "Please choose either CONNDETECT_ML_BASED or CONNDETECT_THRESHOLD_BASED."
bool classify(const ComputedFeatures &ft)
Perform classification, i.e. detect the threshold.
const float MIN_AVG_IMU_ABS_ROT
const float MAX_PEAK_HP8k_MICT
const float MIN_PEAK_HP8k_MICW
Minimum and maximum value of the 8k high-passed signal of the wrist microphone.
FeatureType
These are the features extracted from the filtered data. They should be self-explaining regarding the...
const float MIN_PEAK_HP8k_MICT
The minimal delay in ms the microphone signals should have, for a positive connection detection.
Configuration parameters for connection detection based on thresholds. Note that these values are "in...
const float MAX_PEAK_HP2k_VPU
const float MIN_INVERSE_FREQ_VARIANCE_MICT
const float MAX_AVG_IMU_ABS_ROT
const float MIN_PEAK_LP500_MICW
Minimum and maximum value of the 500 low-passed signal of the wrist microphone.
const float MAX_PEAK_LP500_MICW
const float MIN_PEAK_HP2k_VPU
Minimum and maximum value of the 2k high-passed signal of the VPU.
const float MIN_PEAK_LP500_VPU
Minimum and maximum value of the 500 low-passed signal of the VPU.
std::array< float,(us) NUMBER_FEATURES > ComputedFeatures
const float MAX_PEAK_HP8k_MICW
const float MIN_PEAKFREQ_HP2K_MICT
const float MIN_PEAK_LP500_MICT
Minimum and maximum value of the 500 low-passed signal of the thumb microphone.
const float MIN_WAMP_MICT
unsigned int us
Used to much to not abbreviate.
const float MAX_PEAK_LP500_MICT
const float MAX_PEAK_LP500_VPU