Change Config values. Reorganize Config variable order for usability.

pull/357/head
nyanpasu64 2018-07-23 20:44:24 -07:00
rodzic 2928af9b01
commit 63d1cb0352
1 zmienionych plików z 12 dodań i 9 usunięć

Wyświetl plik

@ -19,13 +19,14 @@ class Config(NamedTuple):
wave_dir: str wave_dir: str
audio_path: Optional[str] audio_path: Optional[str]
fps: int fps: int
amplification: float
time_visible_ms: int time_visible_ms: int
scan_ratio: float scan_ratio: float
trigger: TriggerConfig # Maybe overriden per Wave trigger: TriggerConfig # Maybe overriden per Wave
amplification: float
render: RendererConfig render: RendererConfig
outputs: List[outputs.OutputConfig] outputs: List[outputs.OutputConfig]
create_window: bool create_window: bool
@ -50,21 +51,23 @@ def main(wave_dir: str, audio_path: Optional[str], fps: int, output: str):
wave_dir=wave_dir, wave_dir=wave_dir,
audio_path=audio_path, audio_path=audio_path,
fps=fps, fps=fps,
amplification=5,
time_visible_ms=25, time_visible_ms=25,
scan_ratio=1, scan_ratio=1,
trigger=CorrelationTrigger.Config( trigger=CorrelationTrigger.Config(
trigger_strength=10, trigger_strength=1,
use_edge_trigger=True, use_edge_trigger=False,
responsiveness=0.1, responsiveness=1,
falloff_width=.5, falloff_width=1,
), ),
render=RendererConfig( # todo
amplification=5,
render=RendererConfig( # todo
1280, 720, 1280, 720,
ncols=1 ncols=1
), ),
outputs=[ outputs=[
# outputs.FFmpegOutputConfig(output), # outputs.FFmpegOutputConfig(output),
outputs.FFplayOutputConfig(), outputs.FFplayOutputConfig(),