Skip to content

[mei_encoding bug] When neumes have a width of [2], their neume components get the same facs #341

Open

Description

@JoyfulGen

Since Mothra exists, I've been noticing this behaviour where if I move one neume component of a podatus (in square notation), the other follows. The same is true of the two stacked components in a scandicus in square notation, and of a clivis (untoggled) in Hufnagel. Here's a demo:

Screen.Recording.2026-11-19.at.16.48.55.mov

I think I've finally figured out what the problem is!! Here are the facts:

  • The bug happens in both Neons, but only in straight-outta-OMR files that Mothra has produced. So older mei files, as well as a podatus that the user creates, don't have the bug.
  • The bug also happens in both notations.
  • The bug only happens to neumes that have a width of [2], so where there are two components that are stacked.

Last week, I noticed that in these neumes, the neume and both neume components have the same facs:

<neume xml:id="neume-f7ba2c29e4dc" facs="#z-f7ba2c29e4dc">
   <nc xml:id="nc-f7ba2c29e4dc" facs="#z-f7ba2c29e4dc-0" oct="4" pname="f"/>
   <nc xml:id="nc-f7ba2c29e4dc-1" facs="#z-f7ba2c29e4dc-0" oct="4" pname="a"/>
</neume>

Based on old MEI files as well as my tenuous understanding of neume encoding, I'm 96,5% sure this is not correct. No two neume components should have the same facs. I have a feeling that if this is fixed, the bug will be fixed!

In this issue #116, I said that the bug was fixed, but... it's not.

And I think that fixing this will also fix the remaining bugs here: DDMAL/Neon#1401!

@kyrieb-ekat I'm assigning you because you mentioned you might know how to fix this, and I'm being brazen and assigning a high priority because it is annoying, but feel free to downgrade it if I'm being too dramatic.

Activity

  1. added
    bug
    on Nov 19, 2026
  2. annamorphism commented on Nov 19, 2026

    @annamorphism

    I also notice in your snippet that the two nc's have almost identical IDs, with a -1 added like the a is a duplicate of the f, which looks super weird to me. but then "back in my day" the nc looked different and neumes didn't have a facs (#342) so maybe i need to get with the times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Priority: highbug

Type

No type

Projects

  • Status
    Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions