-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix MML argument validation looping for non-po2 limits
Silly of me not to consider that pretty much every existing top limit for voice arguments was po2. So I was reusing the same trick in a couple of other places, when I should've been more careful. Luckily, only two places were wrong because of this, and while fixing it I also decided to robustify algo validation. Original code was kind of all over the place when suggesting which value ranges are good. Comments would say one thing, code another, and the actual table of algo mappings would say the secret third thing. Maybe this was needed for compatibility with something, but we are still talking about invalid values here. At best we'd loop them, at worse — reject them. At this point, it's better to clearly tell the user what the valid range is. None of the MML songs that we can use for tests seem to mind the change.
- Loading branch information
Showing
1 changed file
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters