Voss Connection Detection  1
Detect a connector click using realtime code on Bela hardware
conndetect.cpp File Reference
#include "conndetect.h"
#include "config.h"
#include "conndetect_features.h"
#include "leds.h"
#include "thresholds_config.h"
#include "timedelay.h"
#include "tools.h"
#include <iostream>
#include "classifier.h"
#include <math.h>
Include dependency graph for conndetect.cpp:

Go to the source code of this file.

Macros

#define WRITE_TO_DISK   1
 Set this parameter to 1, to enable writing data to disk. More...
 
#define max(a, b)   (((a) > (b) ? a : b))
 

Typedefs

typedef unsigned int us
 

Functions

void raw_conndetect_auxtask_callback (void *raw_ptr)
 

Variables

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

Macro Definition Documentation

◆ max

#define max (   a,
 
)    (((a) > (b) ? a : b))

Definition at line 61 of file conndetect.cpp.

◆ WRITE_TO_DISK

#define WRITE_TO_DISK   1

Set this parameter to 1, to enable writing data to disk.

Definition at line 15 of file conndetect.cpp.

Typedef Documentation

◆ us

typedef unsigned int us

Definition at line 60 of file conndetect.cpp.

Function Documentation

◆ raw_conndetect_auxtask_callback()

void raw_conndetect_auxtask_callback ( void *  raw_ptr)

Definition at line 63 of file conndetect.cpp.