fix: maintain item duration in bars when BPM changes

- Add length_bars field to midiItems and sections at creation
- useEffect on bpm recalculates duration = length_bars * secondsPerBar
- Fix section creation: use secondsPerBar instead of hardcoded 4s
- Handle existing items without length_bars (no-op)
This commit is contained in:
2026-07-27 08:03:02 +07:00
parent f98ade5d58
commit d97f82e93f
2 changed files with 37 additions and 18 deletions
File diff suppressed because one or more lines are too long