Skip to content

Codex/fix sidecar midi pitch#911

Closed
menlong999 wants to merge 11 commits intoAudiveris:masterfrom
menlong999:codex/fix-sidecar-midi-pitch
Closed

Codex/fix sidecar midi pitch#911
menlong999 wants to merge 11 commits intoAudiveris:masterfrom
menlong999:codex/fix-sidecar-midi-pitch

Conversation

@menlong999
Copy link
Copy Markdown

No description provided.

Copilot AI and others added 7 commits February 19, 2026 02:35
* Initial plan

* Add NoteMapping.java data model class

Co-authored-by: menlong999 <3749099+menlong999@users.noreply.github.com>

* Add buildWithMapping method and BuildResult class to PartwiseBuilder

Co-authored-by: menlong999 <3749099+menlong999@users.noreply.github.com>

* Add note mapping data collection in PartwiseBuilder

- Added sheet info collection in processStub() method
- Added system info collection in processSystem() method
- Added measure info collection in processMeasure() method with bounds and staff data
- Added time signature info collection in processTime() method
- Added key signature info collection in processKey() method
- Added tempo info collection in processDirection() method for MetronomeInter
- All collection code is wrapped in try-catch blocks to avoid breaking main export flow

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Improve key mode handling with constant

- Added DEFAULT_KEY_MODE constant to avoid magic strings
- Updated comment to clarify mode detection is not implemented

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add division by zero guards in time calculations

- Added checks before division operations to prevent ArithmeticException
- Ensures divisions and currentTempo are greater than zero

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add comprehensive note mapping collection in PartwiseBuilder processNote

Co-authored-by: menlong999 <3749099+menlong999@users.noreply.github.com>

* Integrate note mapping export in ScoreExporter

Co-authored-by: menlong999 <3749099+menlong999@users.noreply.github.com>

* Add comprehensive NoteMapping specification documentation

Co-authored-by: menlong999 <3749099+menlong999@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: menlong999 <3749099+menlong999@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: lvyuanfang <lvyuanfang@kingsoft.com>
* fix: export standard midi pitch in geometry sidecars

* feat: add playback ordinals to geometry sidecars

---------

Co-authored-by: lvyuanfang <lvyuanfang@kingsoft.com>
@hbitteur
Copy link
Copy Markdown
Contributor

@menlong999

Sorry for this late message. I have been very busy in the past few weeks and obviously I overlooked your PR.

I noticed you used Copilot AI.

But I don't understand the purpose of this PR. The description field is empty, this does not help.

You are talking about a "sidecar", what is it precisely for you? Personally, being a biker, for me a sidecar has nothing to do with music!!!

You seem to export additional files in various formats. But you don't explain what they are meant for.
Could you elaborate on the possible scenarios where these files could be used?

Thanks in advance for any additional information.

lvyuanfang and others added 4 commits April 3, 2026 00:06
…zeNote

ShapeClassifier.evaluate() can return fewer results than the requested
count when the classifier finds insufficient matches. The loop in
recognizeNote() was bounded by the requested evalNb instead of the
actual array length, causing AIOOBE on sheet #4 during TEXTS step.

Use enhanced for-each loop matching the pattern of all other evaluate()
callers (ClefBuilder, SymbolsBuilder, KeyExtractor, etc.).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hbitteur
Copy link
Copy Markdown
Contributor

hbitteur commented Apr 7, 2026

@menlong999

Could you explain the purpose of this PR?

What are your exported files intended for?
They could be very useful, but what exactly are they for? Please clarify this point.

I apologize for repeating questions I already asked two weeks ago.
I need some basic information before merging your PR.

/Hervé

@menlong999
Copy link
Copy Markdown
Author

menlong999 commented Apr 15, 2026 via email

@hbitteur
Copy link
Copy Markdown
Contributor

@menlong999

Thank you for your clarification.
I will discard this PR as you suggested

However, I recommend you consult a similar, older discussion in ticket #581.
It might be time to implement continuous integration testing, even if miracles can't be expected.
So, this is not the end of our discussion.

@hbitteur hbitteur closed this Apr 16, 2026
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

Successfully merging this pull request may close these issues.

3 participants