From ce2212708a54cbe6c79bab3165301c4c35206c40 Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Thu, 13 Feb 2025 18:00:59 +0100 Subject: [PATCH] up expr threshold --- guitfx.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/guitfx.c b/guitfx.c index 11ffe2c..561156e 100644 --- a/guitfx.c +++ b/guitfx.c @@ -92,11 +92,12 @@ static void on_process(void *userdata, struct spa_io_position *position) // expr pedal float val_f = ((float)midi_data[2]) / 128.0; - float thres = 0.4; + float thres = 0.5; if ( val_f > thres ) { - printf("Expr Pedal %f\n", val_f); - data->delay.mix = (val_f - thres) / (1.0-thres); + float expr_mix = (val_f - thres) / (1.0-thres); + printf("Expr Pedal %f\n", expr_mix); + data->delay.mix = expr_mix; } else { data->delay.mix = 0.0; }