-
Notifications
You must be signed in to change notification settings - Fork 44
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
Incorrect calculation of duration for grace notes #34
Comments
Hey @cwitkowitz, you are right. However, what do you mean, it's reflected in parts of the |
Thanks for fixing this. I simply meant that a similar formula is followed to compute time in the Duration class: PyGuitarPro/guitarpro/models.py Line 442 in 066ecbf
PyGuitarPro/guitarpro/models.py Line 450 in 066ecbf
|
I see, got it! |
If the aim of
GraceEffect.durationTime
is to return the time of the grace note in ticks, I believe the contents of the function are incorrect:PyGuitarPro/guitarpro/models.py
Line 980 in c2044d9
and should be
int(Duration.quarterTime * 4 / self.duration)
instead. This is also reflected in parts of theDuration
class.The text was updated successfully, but these errors were encountered: