d97f82e93f
- 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)