-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix tuplets rounding errors #591
base: tuxguitar-next
Are you sure you want to change the base?
Conversation
Hi @guiv42 I see that your pull request is commits to Do you have any wise words how to fix this? |
Yes, there's a good reason for that. In tuxguitar-next we changed the
I changed this to introduce automated unit testing. What errors do you get?
What I can suggest:
|
Got it running, thanks for the tips. I created a new workspace directory and then cloned your branch. Back to your pull request. E.g. If you select 6-tuplets, only the first note will be a 6-tuplet, the other notes will be triplets. On a sidenode, when I try to increase the |
Good! I'm also an Eclipse beginner, and sometimes I feel I'm learning the hard way... Thanks for your feedback about 6:4 vs 3:2 tuplets, I'll fix that.
Sure: just append But I really think we should not change that 960 value. As I mentioned above, it's pretty much hard-coded in all existing .tg files. All file format readers also use this convention, and it seems risky to me to change them all. |
I accept your concern about changing |
…ime) So that, if previous note is part of a sextuplet (6:4), propagated rests also are sextuplets Before this commit, in this case rests were filled with triplets (since precise time of 6:4 and 3:2 notes are identical)
OK, thanks, that's clear. About my PR, the general idea is this one: we cannot delete
Ideally |
# fixed conflicts: test files # common/TuxGuitar-lib/src/test/resources/Untitled_20.tg # common/TuxGuitar-lib/src/test/resources/Untitled_20.xml # common/TuxGuitar-lib/src/test/resources/altRepeatLoop_20.tg # common/TuxGuitar-lib/src/test/resources/reference_20.tg # common/TuxGuitar-lib/src/test/resources/tempo_20.tg # common/TuxGuitar-lib/src/test/resources/test_20.tg # common/TuxGuitar-lib/src/test/resources/test_extended_21.xml
|
@Makoha : could you have a look at this PR? |
see #118