From c2ee0f0c21be37613002b404e276dd8de27602f7 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Sat, 12 Jun 2021 16:58:53 +0200 Subject: [PATCH] set proper trigger length --- src/dsp/helpers.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dsp/helpers.rs b/src/dsp/helpers.rs index 15a6a9e..49b0eb7 100644 --- a/src/dsp/helpers.rs +++ b/src/dsp/helpers.rs @@ -346,7 +346,8 @@ pub fn sqrt4_to_pow4(x: f32, v: f32) -> f32 { } } -const TRIG_SIGNAL_LENGTH_MS : f32 = 0.25; +/// A-100 Eurorack states, that a trigger is usually 2-10 milliseconds. +const TRIG_SIGNAL_LENGTH_MS : f32 = 2.0; #[derive(Debug, Clone, Copy)] pub struct TrigSignal {