from quickly.dom import lily
print(lily.Duration(5 / 8).write()) # 2
When I have first seen the example with Duration(3/ 8).write() == "4." I was really excited as It was my first task in own project. But the example with 5/ 8 shows that some durations can be lost. I'm not sure that the best solution would be to make something like Duration(5/ 8).write() == "2~8" as it depends on the bar position. So here is an issue for discussion on the topic.
When I have first seen the example with
Duration(3/ 8).write() == "4."I was really excited as It was my first task in own project. But the example with5/ 8shows that some durations can be lost. I'm not sure that the best solution would be to make something likeDuration(5/ 8).write() == "2~8"as it depends on the bar position. So here is an issue for discussion on the topic.