mirror of
https://github.com/ashstrahle/Pi-Pico-ExpressionPedal2Midi.git
synced 2025-12-31 19:49:51 +10:00
update
This commit is contained in:
1
code.py
1
code.py
@@ -69,6 +69,7 @@ exp_max = offset
|
|||||||
exp_calibration_threshold = int(abs(exp_max - exp_min) * exp_pedal_calibration_percent / 100)
|
exp_calibration_threshold = int(abs(exp_max - exp_min) * exp_pedal_calibration_percent / 100)
|
||||||
cc_ratio = 1/(cc_max - cc_min) # Calculate number of possible CC values
|
cc_ratio = 1/(cc_max - cc_min) # Calculate number of possible CC values
|
||||||
exp_previous = exp.value
|
exp_previous = exp.value
|
||||||
|
|
||||||
if exp_previous == 0:
|
if exp_previous == 0:
|
||||||
exp_previous = offset
|
exp_previous = offset
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user