Skip to content

Conversation

@Danielku15
Copy link
Member

Issues

Fixes #2465

Proposed changes

We cropped fractional bpms in MusicXML which caused 0.111bpm to be cropped to 0. THen 0bpm caused an endlessloop and divisions by zero in the sequencer.

This PR prevents these problems by avoiding truncation and enforcing a minimum of 1bpm for playback.

Checklist

  • I consent that this change becomes part of alphaTab under it's current or any future open source license
  • Changes are implemented
  • New tests were added

Further details

  • This is a breaking change
  • This change will require update of the documentation/website

(cherry picked from commit 8b150a98b17ef6c472c387b46ad5cfa94d9b7692)
@Danielku15 Danielku15 self-assigned this Jan 8, 2026
@Danielku15 Danielku15 force-pushed the feature/zero-bpm branch 3 times, most recently from c4bfac3 to ea69983 Compare January 8, 2026 18:37
(cherry picked from commit d5e4b3519cd921d5e486350f87cf2565a6ebe2f8)

chore: clean import
@Danielku15 Danielku15 merged commit d9e9aba into develop Jan 8, 2026
5 checks passed
@Danielku15 Danielku15 deleted the feature/zero-bpm branch January 8, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

< 1 BPM tempos lead to endless loops

2 participants