From a794102f59e8baf654b8807cf74fdc014830fb6f Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 5 Feb 2026 21:13:26 +0100 Subject: fix(timeline-editor): Fix parser to handle actual demo.seq format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed critical parsing bugs that prevented loading real demo.seq files. Issues fixed: 1. Beat notation support: Parse '0b', '4b' as beats and convert to seconds - Added BPM parsing from '# BPM 120' comments - Helper function: parseTime() converts beats to seconds using BPM 2. Priority modifiers: Handle '+', '=', '-' modifiers correctly - '+' increments priority - '=' keeps same priority - '-' decrements priority (for background effects) - Store both absolute priority and modifier for round-trip 3. Inline comments: Strip comments from end of lines with '#' - Effect lines like 'EFFECT + FlashEffect 0.0 1.0 # comment' now parse 4. Sequence names: Parse optional sequence names in quotes - Format: SEQUENCE