Skip to content

Validate musical lengths in properties

Dan Eble requested to merge eble/lilypond:time-sig-zero into master

Add type predicates:

  • musical-length?
  • positive-musical-length?
  • positive-fraction?

Use them for these context properties:

  • baseMoment
  • completionUnit
  • gridInterval
  • measureLength
  • tempoWholesPerMinute
  • timeSignatureFraction
  • tupletSpannerDuration
  • voltaSpannerDuration

Use them for these grob properties:

  • measure-length
  • musical-length

Avoid dividing by integer zero in two places related to time signature. Add regression tests using zeros with \time. Closes #6624 (closed).

Edited by Dan Eble

Merge request reports