-
Notifications
You must be signed in to change notification settings - Fork 18
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
Measure number -> measure index #311
Comments
(added here just for completeness): Currently, the |
I think that we could introduce the index as a separate attribute and not as a substitution of number. Originally, number was based on the MusicXML specification (as @huispaty points out), and measure number 0 is used for pickup measures. I think we should not loose this property, as it reflects an important aspect of the musical syntax. |
I agree with that, but that is what "name" is for (and it is a string since the user can potentially decide to put other stuff inside, even if it is usually just an integer). |
It's true, currently |
After the DLfM 2023 article on Measures, I think a good representation of measure class could contain three attributes:
Should we implement it in Partitura this way? |
As we had just discussed I think their way of representing (and particularly identifying) measures would help us in clarifying the confusion between the current |
Hello! So picking up on this thread, I checked a couple of files, and it seems like the
There seem to be several inconsistencies introduced by this change. My proposal is to find a clear agreement on what the fields number and name represent (-> an put a short explainer in discussions) and everyone then fixes "their" created functions. I didn't check any output functions, but I expect a similarly mixed picture. |
Good point! I second this proposal |
We agreed on the Measure object having two fields:
If the score contains no measure information, name will then be an empty string. A useful detail to keep in mind: the Measure object must be added to the timeline specifying both starting and ending point. |
MEI import function is up to date with these rules |
Measures have 2 attributes:
The proposal is to change "number" to "index" to avoid confusion. This will also impact some functions, like
measure_number_map
.The text was updated successfully, but these errors were encountered: