Voss Connection Detection
1
Detect a connector click using realtime code on Bela hardware
|
Filter the raw signal to obtain filtered signals (low-passed, high-passed etc. More...
Classes | |
class | Filter |
Convert raw samples to a channel of filtered samples. More... | |
Typedefs | |
typedef array< float, NUMBER_RAW_CHANNELS > | RawFrame |
An array containing data for a raw frame. More... | |
typedef array< float, NUMBER_FILTERED_CHANNELS > | FilteredFrame |
An array containing data with length corresponding to a single processed frame. Its length corresponds to NUMBER_FILTERED_CHANNELS. More... | |
Variables | |
const us | RAW_MICT = 0 |
The number of channels of raw data coming from the sensors. This is currently set to 6. The contents are. More... | |
const us | RAW_MICW = 1 |
const us | RAW_VPU = 2 |
const us | RAW_IMU_ROT = 3 |
const us | RAW_IMU_ACC = 4 |
const us | RAW_PEDAL = 5 |
const us | NUMBER_RAW_CHANNELS = 6 |
const us | FILT_RAW_MICT = 0 |
The number of buffers that require some processing. This is not equal to the number of sensors, but instead equal to the number of extracted signals from the sensors. I.e. if a single signal is used, it can be 2 if both a high-pass and a low-pass filter is applied to the single signal. Be careful with changing this parameter, as it requires for sure changes in buffer.cpp and conndetect.cpp! More... | |
const us | FILT_HP8k_MICT = 1 |
const us | FILT_HP2k_MICT = 2 |
const us | FILT_LP500_MICT = 3 |
const us | FILT_RAW_MICW = 4 |
const us | FILT_HP8k_MICW = 5 |
const us | FILT_LP500_MICW = 6 |
const us | FILT_RAW_VPU = 7 |
const us | FILT_HP2k_VPU = 8 |
const us | FILT_LP500_VPU = 9 |
const us | FILT_IMU_ROT = 10 |
const us | FILT_HP_IMU_ACC = 11 |
const us | FILT_PEDAL = 12 |
const us | NUMBER_FILTERED_CHANNELS = 13 |
Filter the raw signal to obtain filtered signals (low-passed, high-passed etc.
typedef array<float, NUMBER_FILTERED_CHANNELS> FilteredFrame |
typedef array<float, NUMBER_RAW_CHANNELS> RawFrame |
const us FILT_RAW_MICT = 0 |
The number of buffers that require some processing. This is not equal to the number of sensors, but instead equal to the number of extracted signals from the sensors. I.e. if a single signal is used, it can be 2 if both a high-pass and a low-pass filter is applied to the single signal. Be careful with changing this parameter, as it requires for sure changes in buffer.cpp and conndetect.cpp!
As of the state of Nov. 21st, 2021, we store:
8kHz High-passed signal of the thumb microphone 8kHz Low-passed signal of the thumb microphone
500Hz High-passed signal of the wrist microphone 500Hz Low-passed signal of the wrist microphone
2kHz High-passed signal of the VPU 500Hz Low-passed signal of the VPU
2kHz High-passed signal of the thumb microphone
Absolute value of the acceleration from the IMU Absolute value of the rotation speed from the IMU The pedal state, pushed through as raw data (nothing changed).
const us RAW_MICT = 0 |
The number of channels of raw data coming from the sensors. This is currently set to 6. The contents are.
0) Mic signal from thumb
1) Mic signal from wrist
2) VPU signal
3) IMU signal absolute value of rotation speed (normalized to 0.0 < r < 1.0
4) IMU signal absolute value of acceleration (normalized to 0.0 < r < 1.0
5) The pedal state. Note that this one can NEVER be part of the classifier algorithm!