Voss Connection Detection  1
Detect a connector click using realtime code on Bela hardware
conndetect.h File Reference
#include "config.h"
#include "buffer.h"
#include <Bela.h>
#include <cmath>
Include dependency graph for conndetect.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LogFile< num_cols >
 A class for opening a logfile, and writing data to a log. More...
 
class  ConnDetect
 The main connection detection class. More...
 

Typedefs

typedef std::array< float,(us) NUMBER_FEATURESComputedFeatures
 

Enumerations

enum  FeatureType : int {
  FeatureType::HP_8k_PEAKdB_MICT, FeatureType::HP_8k_PEAKdB_MICW, FeatureType::LP_500_PEAKdB_MICT, FeatureType::LP_500_PEAKdB_MICW,
  FeatureType::HP_2k_PEAKdB_VPU, FeatureType::LP_500_PEAKdB_VPU, FeatureType::HP_2k_PEAKFREQ_MICT, FeatureType::KURTOSIS_MICT,
  FeatureType::INVERSE_FREQ_VARIANCE_MICT, FeatureType::WAMP_MICT, FeatureType::TM3_MICT, FeatureType::ZC_MICT,
  FeatureType::KURTOSIS_MICW, FeatureType::INVERSE_FREQ_VARIANCE_MICW, FeatureType::WAMP_MICW, FeatureType::TM3_MICW,
  FeatureType::ZC_MICW, FeatureType::KURTOSIS_VPU, FeatureType::WAMP_VPU, FeatureType::TM3_VPU,
  FeatureType::ZC_VPU, FeatureType::TIMEDELAY_MICW_MICT, FeatureType::AVG_IMU_ABS_ROT, FeatureType::MAX_IMU_ABS_HP_ACC,
  FeatureType::PEDAL, FeatureType::CLASS, FeatureType::NumberOfFeatures
}
 These are the features extracted from the filtered data. They should be self-explaining regarding the build-up of the naming. First part is signal type, HP_x means high-passed, LP_x means lowpassed. Second part is a feature descriptor, and last part is the signal to apply it on. Exception is the time delay, which is a cross-signal feature. More...
 

Variables

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"
 Please be VERY SURE to keep this in sync with the list above, otherwise LARGE MISTAKES will be made. More...
 
const us NUMBER_FEATURES = static_cast<int>(FeatureType::NumberOfFeatures)