Neon icon indicating copy to clipboard operation
Neon copied to clipboard

Unwanted default clef inserted on new MEI file

Open 21CSM opened this issue 1 year ago • 1 comments

Version number

v6.0.0 Or, latest web editor version: https://ddmal.music.mcgill.ca/Neon/

What you were doing

When I use Neon and create a brand new MEI file, it seems that an "invisible" default clef gets added on line 3. When I export this, I can see it in the output MEI, and also when I upload it in a different viewer i.e. Verovio

<body>
            <mdiv xml:id="m-7f25ddaa-6d6a-4a42-894c-c625aa1ce96d">
                <score xml:id="m-86bd2393-99c2-4890-b3d5-0450e97c6445">
                    <scoreDef xml:id="m-e65e912e-e024-43d3-bd21-38ab5306a29a">
+                       <staffGrp xml:id="m-355f35d4-1e1c-4346-a4a1-223b85e30a6f">
+                           <staffDef xml:id="m-3b30d996-49b4-4c74-aba1-dceb586c90e8" n="1" notationtype="neume" lines="4" clef.shape="C" clef.line="3"/>
+                        </staffGrp>
                    </scoreDef>
                    <section xml:id="m-482e5228-3bce-4fcd-b440-af2fc43bb7ad">
                        <staff n="1">
                            <layer n="1">
                                <pb xml:id="m-26d2b7bc-10e0-4173-87c7-d5fa5f3f85b4" facs="#m-b88c18d3-5c40-473a-b887-cab3ab1cbbd3"/>
                                <sb n="1" facs="#z1xx5klb" xml:id="s14hk27o"/>
                                <clef xml:id="c10s9elm" facs="#zqw8nb9" shape="C" line="2"/>
                            </layer>
                        </staff>
                    </section>
                </score>
            </mdiv>
        </body>

Example: Screenshot 2024-09-16 at 10 26 49 PM

Unsure if this is a user issue from me or a bug. My expectation is this should not happen.

A workaround is to just edit the MEI file directly and remove the clef, which is not too much of a big deal.

What you were using

Attached output MEI file and source image. Unfortunately GitHub does not allow MEI or XML, so uploaded as TXT. 0286_Plut._29.01_Carta 139v.txt 0286_Plut _29 01_Carta 139v

21CSM avatar Sep 17 '24 02:09 21CSM

staffDef defines the default clef information when there is no clef found on a staff. It should not create a clef. Is this still happening for you?

Also, the MEI files exported by Neon cannot be directly rendered in Verovio. For more details, please check this page

yinanazhou avatar Jan 11 '25 22:01 yinanazhou