Voss Connection Detection
1
Detect a connector click using realtime code on Bela hardware
|
Configuration parameters for connection detection. More...
#include <array>
Go to the source code of this file.
Macros | |
#define | CONNDETECT_THRESHOLD_BASED 1 |
Set this parameter to 1, to enable connection detection based on thresholds. If this is set to 1, please set CONNDETECT_ML_BASED to 0. More... | |
#define | CONNDETECT_ML_BASED 0 |
Set this parameter to 1, to enable connection detection based on on a ML classification model. If this is set to 1, please set CONNDETECT_THRESHOLD_BASED to 0. More... | |
#define | EMULATE_IMU 1 |
Set this to true to emulate the IMU data. Useful whenever an IMU sensor is not connected to the board, and testing is required. More... | |
Typedefs | |
typedef unsigned int | us |
Used to much to not abbreviate. More... | |
typedef std::array< float, BLOCKSIZE > | Channel |
A Channel contains data for the length of BLOCKSIZE. More... | |
Variables | |
const int | PERIOD_SIZE = 128 |
const int | LED_PIN_CONTROLBOX = 4 |
The digital pin number for the control box led. More... | |
const int | LED_PIN_WRIST = 6 |
The digital pin number for the wrist led. More... | |
const int | LED_PIN_THUMB = 7 |
The digital pin number for the thumb led. More... | |
const int | VIBRATOR_PIN = 8 |
The digital pin number for the vibrometer. More... | |
const int | INPUT_PIN_PEDAL = 5 |
The digital pin number on which the pedal is read. More... | |
const int | NCHANNELS_INPUT_ANALOG = 4 |
These are the amount of channels enabled for analog input on the Bela board. Only for the setting of 4, we have the analog sampling frequency at the same as the audio sampling frequency of 44.1k. More... | |
const int | NCHANNELS_INPUT_AUDIO = 2 |
These are the amount of channels enabled for audio input on the Bela board. The audio input channels are currently not used. More... | |
const char *const | SNDFILE_BASENAME = "raw_data" |
The base of the filename where raw data is written to. Extension .wav is addded. More... | |
const float | SAMPLING_FREQUENCY = 44100.0f |
This is the exact sampling frequency of the system. Do not change! More... | |
const us | BLOCKSIZE = 4096 |
The size of a buffer in a block. Should be an integer number of samples, and preferrably a integer power of 2 (for fast DFT's). More... | |
const float | MIC_HP_CUTON8k = 8e3f |
The cut-on frequency of the microphone 8kHz high-pass filter. More... | |
const float | MIC_HP_CUTON2k = 2e3f |
The cut-on frequency of the microphone 2kHz high-pass filter. More... | |
const float | MIC_LP_CUTOFF = 5e3f |
The cut-off frequency of the microphone low-pass filter. More... | |
const float | ACC_HP_CUTON = 2e3f |
The cut-on frequency of the high-pass filter for accelerometer data. More... | |
const float | ACC_LP_CUTOFF = 5e2f |
const float | IMU_ACC_CUTON = 0.1f |
Cut-on frequency of the high-pass for the IMU accelerometer. More... | |
const float | LED_HOLD_TIME = 1.0f |
const us | NUMBER_SCOPE_VALUES = 4 |
The number of values send to the Gui scope. More... | |
const char *const | logFileFormat = "%1.3e" |
The format for representing numbers in the log file. I.e. %3.1f means three number before the decimal separator and one behind. More... | |
const char *const | logFileName = "data.dat" |
The filename containing logged data. If you change this, please also update the file ../scripts/copy_data.py, as it is also hard-coded there. More... | |
Configuration parameters for connection detection.
Definition in file config.h.