Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support measure boundary/barline locations #262

Open
joeberkovitz opened this issue Nov 10, 2021 · 2 comments
Open

Support measure boundary/barline locations #262

joeberkovitz opened this issue Nov 10, 2021 · 2 comments

Comments

@joeberkovitz
Copy link
Contributor

joeberkovitz commented Nov 10, 2021

As raised by in #251 (comment) we sometimes need a way to refer to the locations of the start points or endpoints of bars, in order to position directions, slurs, ties, and other objects relative to them. Ordinarily these horizontal positions are occupied by barlines. But sometimes barlines are absent from these positions — for example, at the start of a system — so let's call these positions measure boundaries for clarity.

So far, the measure location data type has been limited to a metrical position within a measure: some fractional number of beats relative to the first event in the bar. Boundaries, however, do not occur at a metrical position. The start of a bar is separated from its first note or event by some amount of horizontal space. And the end of a bar may not occur exactly where the next note would have been placed if the bar had been longer.

@joeberkovitz joeberkovitz changed the title Suppoer measure boundary/barline locations Support measure boundary/barline locations Nov 10, 2021
@joeberkovitz
Copy link
Contributor Author

Proposal: measure locations being used for positioning purposes may employ the special keywords start or end to refer to the position of a measure boundary. If used standalone, these refer to the placement of the start or end boundaries of the containing measure. If preceded by a measure index (like 4:end or 6:start by analogy with metrical positions), they refer to the boundaries of the measure identified by that index.

As a special case, the measure location corresponding to the full duration of a measure (e.g. 1 in a 4/4 bar) is defined to be the same as end, to avoid ambiguity. Although a barline and an imaginary "next note" might not have occupied the same exact position, there is in fact no next note.

@notator
Copy link
Contributor

notator commented Nov 12, 2021

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants