Voss Connection Detection  1
Detect a connector click using realtime code on Bela hardware
Filter

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_CHANNELSRawFrame
 An array containing data for a raw frame. More...
 
typedef array< float, NUMBER_FILTERED_CHANNELSFilteredFrame
 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
 

Detailed Description

Filter the raw signal to obtain filtered signals (low-passed, high-passed etc.

Typedef Documentation

◆ FilteredFrame

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.

Definition at line 102 of file filter.h.

◆ RawFrame

typedef array<float, NUMBER_RAW_CHANNELS> RawFrame

An array containing data for a raw frame.

Definition at line 50 of file filter.h.

Variable Documentation

◆ FILT_HP2k_MICT

const us FILT_HP2k_MICT = 2

Definition at line 80 of file filter.h.

◆ FILT_HP2k_VPU

const us FILT_HP2k_VPU = 8

Definition at line 88 of file filter.h.

◆ FILT_HP8k_MICT

const us FILT_HP8k_MICT = 1

Definition at line 79 of file filter.h.

◆ FILT_HP8k_MICW

const us FILT_HP8k_MICW = 5

Definition at line 84 of file filter.h.

◆ FILT_HP_IMU_ACC

const us FILT_HP_IMU_ACC = 11

Definition at line 92 of file filter.h.

◆ FILT_IMU_ROT

const us FILT_IMU_ROT = 10

Definition at line 91 of file filter.h.

◆ FILT_LP500_MICT

const us FILT_LP500_MICT = 3

Definition at line 81 of file filter.h.

◆ FILT_LP500_MICW

const us FILT_LP500_MICW = 6

Definition at line 85 of file filter.h.

◆ FILT_LP500_VPU

const us FILT_LP500_VPU = 9

Definition at line 89 of file filter.h.

◆ FILT_PEDAL

const us FILT_PEDAL = 12

Definition at line 93 of file filter.h.

◆ FILT_RAW_MICT

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).

Definition at line 78 of file filter.h.

◆ FILT_RAW_MICW

const us FILT_RAW_MICW = 4

Definition at line 83 of file filter.h.

◆ FILT_RAW_VPU

const us FILT_RAW_VPU = 7

Definition at line 87 of file filter.h.

◆ NUMBER_FILTERED_CHANNELS

const us NUMBER_FILTERED_CHANNELS = 13

Definition at line 95 of file filter.h.

◆ NUMBER_RAW_CHANNELS

const us NUMBER_RAW_CHANNELS = 6

Definition at line 46 of file filter.h.

◆ RAW_IMU_ACC

const us RAW_IMU_ACC = 4

Definition at line 44 of file filter.h.

◆ RAW_IMU_ROT

const us RAW_IMU_ROT = 3

Definition at line 43 of file filter.h.

◆ RAW_MICT

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!

Definition at line 40 of file filter.h.

◆ RAW_MICW

const us RAW_MICW = 1

Definition at line 41 of file filter.h.

◆ RAW_PEDAL

const us RAW_PEDAL = 5

Definition at line 45 of file filter.h.

◆ RAW_VPU

const us RAW_VPU = 2

Definition at line 42 of file filter.h.