summaryrefslogtreecommitdiff
path: root/tools/timeline_editor/timeline-viewport.js
AgeCommit message (Collapse)Author
12 hoursrefactor(timeline-editor): complete variable unit renames in modulesskal
- newPixelsPerSecond → newPixelsPerBeat - maxTime → maxTimeBeats (in waveform render) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
13 hoursfix(timeline-editor): disable waveform tooltip when no audio loadedskal
- Add audioBuffer check before showing tooltip/cursor in viewport controller - Sync variable renames in module files (pixelsPerBeat, audioDurationSeconds) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
13 hoursrefactor(timeline-editor): centralize BPM calculationsskal
Replace repeated 60.0/bpm calculations with precomputed secondsPerBeat and beatsPerSecond properties. Add computeBPMValues helper and updateBPM function for consistency. Also prevent wheel events on time markers. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
13 hoursfeat(timeline-editor): add timing tooltip and cursor in waveform viewskal
Shows precise time (seconds) and beat position under mouse cursor with a vertical guide line for accurate sample timing measurements. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
15 hoursrefactor(timeline-editor): extract viewport and playback to ES6 modulesskal
Extract zoom/scroll/playback code from monolithic index.html into separate modules for better code organization: - timeline-viewport.js: Zoom, scroll sync, indicator positioning (133 lines) - timeline-playback.js: Audio loading, playback, waveform rendering (303 lines) - index.html: Reduced from 1093 to 853 lines (-22%) Requires HTTP server for ES6 module imports. Updated README with usage. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>