- Add safety check for duration === 0 (first track scenario) - Ensure trackWidth doesn't exceed canvas width - Use Math.floor for integer loop iterations - Prevent division by zero in samplesPerPixel calculation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
27 KiB
27 KiB