From 4c9b8f96ceed70c5e0bd8cc11b8fda3e7c320c82 Mon Sep 17 00:00:00 2001 From: nyanpasu64 Date: Sun, 26 Aug 2018 18:31:16 -0700 Subject: [PATCH] Reorganize CorrelationTriggerConfig use_edge_trigger and edge_strength serve the same purpose. trigger_falloff and lag_prevention both control input data windowing. --- ovgenpy/triggers.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/ovgenpy/triggers.py b/ovgenpy/triggers.py index a979970..5ab9e49 100644 --- a/ovgenpy/triggers.py +++ b/ovgenpy/triggers.py @@ -64,14 +64,20 @@ class Trigger(ABC): # CorrelationTrigger -@register_config(always_dump='*') +@register_config(always_dump=''' + use_edge_trigger + edge_strength + responsiveness + buffer_falloff +''') class CorrelationTriggerConfig(ITriggerConfig): # get_trigger - edge_strength: float = 10 - lag_prevention: float = 0.25 - trigger_diameter: float = 0.5 - trigger_falloff: Tuple[float, float] = (4, 1) use_edge_trigger: bool = True + edge_strength: float = 10.0 + trigger_diameter: float = 0.5 + + trigger_falloff: Tuple[float, float] = (4.0, 1.0) + lag_prevention: float = 0.25 # _update_buffer responsiveness: float = 0.1