Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xsd: allow unbound number of notes in pattern #1842

Conversation

theGreatWhiteShark
Copy link
Contributor

There was a limitation in the XSD file that set the maximum number of allow notes within a pattern to 1000. This number can easily be reached by setting resolution to off and filling all notes for a couple of instruments. Curiously, Qt treated this number wrong and also deemed paterns containing more than 100 notes as invalid.

Once considered invalid, Hydrogen thinks this pattern is of a legacy format. But since it is not, loading partially fails.

I removed the constraint for a maximum number of notes.

fixes #1827

There was a limitation in the XSD file that set the maximum number of allow notes within a pattern to `1000`. This number can easily be reached by setting resolution to `off` and filling all notes for a couple of instruments. Curiously, Qt treated this number wrong and also deemed paterns containing more than `100` notes as invalid.

Once considered invalid, Hydrogen thinks this pattern is of a legacy format. But since it is not, loading partially fails.

I removed the constraint for a maximum number of notes.

fixes hydrogen-music#1827
@theGreatWhiteShark theGreatWhiteShark merged commit fc2d4c2 into hydrogen-music:releases/1.2 Aug 30, 2023
@theGreatWhiteShark theGreatWhiteShark deleted the phil-fix-1827 branch August 30, 2023 16:17
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 participant