notedur2ratio
The notedur2ratio
object converts symbolic musical note durations (e.g., 4n
for a quarter note) into numerical ratios, outputting them as either fractions or floats. It supports standard note values, dotted notes, various tuplets (using abbreviations like 'd', 't', 'q', 's', 'n' or [x:y]
format), and tied notes. This utility is essential for precise timing calculations in musical contexts.
AI Generated
This content was generated with the assistance of AI. If you notice any errors, please report them or submit a fix using Submit. Check the prompt used here.