Configuration variables for connection detection. For the pin numbers, please refer to https://learn.bela.io/pin-diagram to understand where to connect it to the hardware.
More...
|
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...
|
|
const float | WAMP_LT = 0.005 |
| Willson amplitude L-definition. For the thumb mic. More...
|
|
const float | WAMP_LW = 0.005 |
| Willson amplitude L-definition. For the wrist mic. More...
|
|
const float | WAMP_LVPU = 0.001 |
| Willson amplitude L-definition. For the VPU. More...
|
|
const float | ZC_T = 0.01 |
| Zero-crossings L-definition. For the thumb mic. More...
|
|
const float | ZC_W = 0.01 |
| Zero-crossings L-definition. For the wrist mic. More...
|
|
const float | ZC_VPU = 0.005 |
| Zero-crossings L-definition. For the VPU. More...
|
|
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...
|
|
Configuration variables for connection detection. For the pin numbers, please refer to https://learn.bela.io/pin-diagram to understand where to connect it to the hardware.