Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

rest shifting according to clarified spec #90

Merged
merged 4 commits into from
Feb 13, 2024
Merged

rest shifting according to clarified spec #90

merged 4 commits into from
Feb 13, 2024

Conversation

mfwolffe
Copy link
Contributor

@mfwolffe mfwolffe commented Feb 10, 2024

This should take care of rests breaking the shifts.

  • rests will coalesce similar to how notes coalesce, e.g., if a terminating quarter rest is shifted once the resulting measure begins and ends with eighth rest. Another shift produces measure beginning with a quarter rest.
  • doesn't seem to mind ... 'unusual'... motives (subjective I know), such as a measure with only one note

notes will now have an isRest property if they are part of a measure passed through these functions. Makes life easier.

@@ -647,14 +647,18 @@ function FlatEditor({
setRefId(score.scoreId);
})
.catch((e) => {
e.message = `flat error: ${e.message}, not loaded from scoreId, score: ${JSON.stringify(score)}, orig: ${orig}, colors: ${colors}`;
if (debugMsg){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, but like, can you still keep debugMsg when it's available at least in the console error. the point of the hasty change was to be able to distinguish which instances of the Flateditor are experiencing the errors?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Admittedly, my commenting out was hasty, especially considering the latter of the runtime errors seems to only happen when the scores lock. uncommented now

Copy link
Contributor

@hcientist hcientist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you throw debugMsg somewhere when it's available?

per review request
only debugMsg and console.error
just debugMsg
Copy link
Contributor

@hcientist hcientist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ship it!

@hcientist hcientist merged commit 2465bb9 into JMU-CIME:main Feb 13, 2024
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants