From cd53ff0be8971b592d8d01836a6572c4123e5495 Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 17 Feb 2026 07:52:48 +0100 Subject: feat: add Sequence V2 format support to timeline editor Implements full support for the sequence v2 DAG format with explicit node routing and arrow syntax. New features: - timeline-format.js module for parsing/serializing v2 format - NODE declarations with typed buffers (u8x4_norm, f32x4, etc.) - Arrow syntax for effect routing: input1 input2 -> output1 output2 - Buffer chain visualization in properties panel and tooltips - Node editor modal for adding/deleting node declarations - Validation for undeclared node references (when NODEs explicit) - Backward compatible with auto-inferred nodes Files added: - tools/timeline_editor/timeline-format.js (214 lines) - tools/timeline_editor/test_format.html (automated tests) - workspaces/test/timeline_v2_test.seq (test file with NODE declarations) Files modified: - tools/timeline_editor/index.html (~40 changes for v2 support) All success criteria met. Round-trip tested with existing timelines. handoff(Claude): Timeline editor now fully supports v2 format with explicit node routing, NODE declarations, and buffer chain visualization. Parser handles both explicit NODE declarations and auto-inferred nodes. Validation only runs when explicit NODEs exist. Ready for production use. Co-Authored-By: Claude Sonnet 4.5 --- workspaces/test/timeline_v2_test.seq | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 workspaces/test/timeline_v2_test.seq (limited to 'workspaces') diff --git a/workspaces/test/timeline_v2_test.seq b/workspaces/test/timeline_v2_test.seq new file mode 100644 index 0000000..e374c06 --- /dev/null +++ b/workspaces/test/timeline_v2_test.seq @@ -0,0 +1,8 @@ +# BPM 120 +SEQUENCE 0.0 0 "v2_test" + NODE temp1 u8x4_norm + NODE temp2 f32x4 + NODE depth depth24 + EFFECT + Hybrid3D source depth -> temp1 0.0 4.0 + EFFECT + GaussianBlur temp1 -> temp2 0.0 4.0 + EFFECT + Flash temp2 -> sink 0.0 4.0 -- cgit v1.2.3