Reorganize CorrelationTriggerConfig

use_edge_trigger and edge_strength serve the same purpose.
trigger_falloff and lag_prevention both control input data windowing.
pull/357/head
nyanpasu64 2018-08-26 18:31:16 -07:00
rodzic d8c3ef48ef
commit 4c9b8f96ce
1 zmienionych plików z 11 dodań i 5 usunięć

Wyświetl plik

@ -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