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

Cannot "right-click" in a measure #726

Open
olin256 opened this issue Apr 5, 2024 · 3 comments
Open

Cannot "right-click" in a measure #726

olin256 opened this issue Apr 5, 2024 · 3 comments

Comments

@olin256
Copy link

olin256 commented Apr 5, 2024

Problematic file

Measure 5 has two main problems:

  • when right-clicking to the lower staff, I'm getting an error Error in mouseReleased java.lang.NullPointerException: Cannot invoke "org.audiveris.omr.sig.inter.StaffBarlineInter.getReferenceCenter()" because the return value of "org.audiveris.omr.sheet.PartBarline.getStaffBarline(org.audiveris.omr.sheet.Part, org.audiveris.omr.sheet.Staff)" is null
  • the notes resist assigning to any voice

Perhaps I should add that all the braces in front of the staves were inserted manually.

@hbitteur
Copy link
Contributor

hbitteur commented Apr 8, 2024

@olin256
No. Audiveris is intended for printed sheet music only.
This is not the case for your example.
You'll end up manually inserting almost everything.

Just for the fun I tried it myself for a couple of measures. A bit tedious but I don't stumble on an error as you did.
Perhaps because I inserted the braces (manually of course) right after the GRID step.

Anyway, my advice is: don't waste time fighting with Audiveris on such input

@olin256
Copy link
Author

olin256 commented Apr 8, 2024

I agree that this image is not a suitable task for Audiveris. However, if the error did not stop me, I would quite likely finish the manual work – it turns out to be actually quite convenient to put the notes "directly" on the original sheet. In the end I used MuseScore, but had to look back and forth all the time. Perhaps there's a better way to do such tasks I'm not aware of.

In any case, I encountered an error (a strange one I'd say), so I reported it. If you believe it appears only in such hopeless cases like this one, feel free to ignore it.

@hbitteur
Copy link
Contributor

hbitteur commented Apr 9, 2024

Of course you are free to use Audiveris as you wish. In the image at hand, at least you get the grid of staves and measures, and the original image in the background to guide you in manual insertions.

Note that the simple reloading of your .omr file led to this message:

[ror32] Error in class org.audiveris.omr.sheet.rhythm.Measure afterReload() java.lang.IllegalStateException: PartBarline with no proper StaffBarline in {Staff id=4 left:108 right:2356}

I noticed several inters flagged as "MANUAL" resulting from the manual insertions you had made.
But, restarting the processing from scratch, I could not reproduce the error you encountered.

If you think this is worth the effort, please restart your processing from scratch with as few manual actions as possible until you encounter the stopping error. Doing so, we would have a chance to fix it.

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