Skip to content

length_in_measures does not take into account repeats in the beat timeline #402

@m-k94

Description

@m-k94
Image

If a beatgrid contains skips forward or backwards (i. e. for notated repeats like above), the "length_in_measures" attribute in the JSON ends up having incorrect values: In the example, it would consider the yellow theme to end at measure 1, where the subtraction of start from end gives it a metrical length of 0 and the last orange unit one of -8.

The safer option would be to count the measures/beats that exist within the timespan, which would work as long as the beatgrid is complete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions