Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
events/configurations/? => Duration: Allow strings
This patch allows the usage of strings in the default duration parser. With this patch the following syntax is allowed: >>> from mutwo import core_events >>> core_events.SimpleEvent('3/2') # fractions >>> core_events.SimpleEvent('4.213') # floats Particularly fractions can be useful for precisely writing beats without using the long-named 'fractions.Fraction' and without the danger of floating point errors.
- Loading branch information