This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Leengit
Recipients Leengit, mark.dickinson, rhettinger, serhiy.storchaka, zach.ware
Date 2022-02-17.22:02:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645135376.49.0.694713196455.issue46780@roundup.psfhosted.org>
In-reply-to
Content
> The 12 semitones in an octave are separated ...

Right, this functionality would not solve the semitones / cents problem.  Nor will it achieve world peace.  But if it solves enough use cases then it is worth discussing, yes?

I haven't written the string parsing, but once we know that "0.001" means to look in [0.0005, 0.0015) then we can invoke the attached as best_fraction(Fraction("0.001"), Fraction("0.0005"), Fraction("0.0015")) to get the output Fraction(1, 1000).
History
Date User Action Args
2022-02-17 22:02:56Leengitsetrecipients: + Leengit, rhettinger, mark.dickinson, zach.ware, serhiy.storchaka
2022-02-17 22:02:56Leengitsetmessageid: <1645135376.49.0.694713196455.issue46780@roundup.psfhosted.org>
2022-02-17 22:02:56Leengitlinkissue46780 messages
2022-02-17 22:02:56Leengitcreate