Sensor updates

This commit is contained in:
Brian Hrebec 2024-08-20 13:45:22 -05:00
parent f4e95668ce
commit 80c8ccd54b
8 changed files with 251 additions and 179 deletions

View file

@ -11,7 +11,9 @@
#define CCN_Port 5 // Controller number for portamento level
#define CCN_PortOnOff 65// Controller number for portamento on/off
#define START_NOTE 36 // set startNote to C (change this value in steps of 12 to start in other octaves)
#define FILTER_FREQ 10.0
#define FILTER_FREQ 30.0
#define SPIKE_FILTER_FREQ 150.0 // Detect fast changes in breath
#define ICM_FILTER_FREQ 2
#define BREATH_THR_MAX_BOOST 40.0
#define CAP_SENS_ABSOLUTE_MAX 1000 // For inverting capacitive sensors
#define PRESSURE_SENS_MULTIPLIER 10 // Multiply pressure sens so it's not a float
@ -50,15 +52,16 @@
#define BREATH_HI_LIMIT 12000
#define BITE_LO_LIMIT 500
#define BITE_HI_LIMIT 1000
#define PITCHB_LO_LIMIT -100
#define PITCHB_HI_LIMIT 100
#define EXTRA_LO_LIMIT -100
#define EXTRA_HI_LIMIT 100
#define PITCHB_LO_LIMIT -2000
#define PITCHB_HI_LIMIT 2000
#define EXTRA_LO_LIMIT -2000
#define EXTRA_HI_LIMIT 2000
#define CTOUCH_LO_LIMIT 500
#define CTOUCH_HI_LIMIT 1000
#define LEVER_LO_LIMIT -100
#define LEVER_HI_LIMIT 100
#define LEVER_LO_LIMIT -2000
#define LEVER_HI_LIMIT 2000
#define SPIKE_LO_LIMIT 0
#define SPIKE_HI_LIMIT 200
#define SLIDER_TOUCH_OFFSET 4
#endif