-
Notifications
You must be signed in to change notification settings - Fork 68
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
Fixed rate command #64
base: master
Are you sure you want to change the base?
Conversation
2 similar comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand why this way would be more logical than the previous one.
return self.from_ordinal(int(round(self.ordinal / ratio))) | ||
|
||
def __itruediv__(self, ratio): | ||
self.ordinal = int(round(self.ordinal / ratio)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not call __idiv__
instead of copying the code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Agreed.
The more framerate the less time value should be because there will be more text per second. |
If ratio is
final/initial
then time should be divided by it, not multiplied.