From 82d34d198b3c916df4d5d39142095edb410e7500 Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 12 Feb 2026 13:23:34 +0100 Subject: Timeline editor: streamline code structure Factorize common patterns: POST_PROCESS_EFFECTS constant, helper functions (beatsToTime, timeToBeats, beatRange, detectConflicts). Reduce verbosity with modern JS features (nullish coalescing, optional chaining, Object.assign). Co-Authored-By: Claude Sonnet 4.5 --- tools/timeline_editor/index.html | 313 ++++++++++++++++++--------------------- 1 file changed, 142 insertions(+), 171 deletions(-) diff --git a/tools/timeline_editor/index.html b/tools/timeline_editor/index.html index ed2f332..2c66ddd 100644 --- a/tools/timeline_editor/index.html +++ b/tools/timeline_editor/index.html @@ -177,6 +177,11 @@