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

Cue sized notes' stem direction interaction with layer number #810

Closed
craigsapp opened this issue Mar 30, 2018 · 3 comments
Closed

Cue sized notes' stem direction interaction with layer number #810

craigsapp opened this issue Mar 30, 2018 · 3 comments

Comments

@craigsapp
Copy link
Contributor

Cue-sized notes default stem directions are always up regardless of the layer in which they are placed. The following example shows the default stem directions being upwards for cue-sized notes in the second layer:

screen shot 2018-03-29 at 9 30 23 pm

To currently fix this problem, one of the notes in the cue-sized beam must be forced downwards (it does not matter which one). This is shown in the second measure of the example.

The third measure demonstrates that cue-sized notes that are not involved in beam groups posses the correct default stem directions. In this case they are in the second layer and the stems point downwards.

MEI test data:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://music-encoding.org/schema/4.0.0/mei-all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://music-encoding.org/schema/4.0.0/mei-all.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xmlns="http://www.music-encoding.org/ns/mei" meiversion="4.0.0">
    <meiHead>
        <fileDesc>
            <titleStmt>
                <title />
            </titleStmt>
            <pubStmt />
        </fileDesc>
        <encodingDesc>
            <appInfo>
                <application isodate="2018-03-29T21:31:07" version="2.0.0-dev-b1351cc">
                    <name>Verovio</name>
                    <p>Transcoded from Humdrum</p>
                </application>
            </appInfo>
        </encodingDesc>
        <workDesc>
            <work>
                <titleStmt>
                    <title />
                </titleStmt>
            </work>
        </workDesc>
    </meiHead>
    <music>
        <body>
            <mdiv xml:id="mdiv-0000000170187619">
                <score xml:id="score-0000000488932538">
                    <scoreDef xml:id="scoredef-0000001480909716">
                        <staffGrp xml:id="staffgrp-0000001158569481">
                            <staffDef xml:id="staffdef-0000001111771772" clef.shape="G" clef.line="2" n="1" lines="5">
                                <label xml:id="label-0000000360314649" />
                            </staffDef>
                        </staffGrp>
                    </scoreDef>
                    <section xml:id="section-0000000291905171">
                        <measure xml:id="measure-L2" n="1">
                            <staff xml:id="staff-L2F1N1" n="1">
                                <layer xml:id="layer-L2F1N1" n="1">
                                    <beam xml:id="beam-L4F1-L5F1">
                                        <note xml:id="note-L4F1" dur="8" oct="5" pname="c" cue="true" accid.ges="n" />
                                        <note xml:id="note-L5F1" dur="8" oct="5" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                    <beam xml:id="beam-L6F1-L7F1">
                                        <note xml:id="note-L6F1" dur="8" oct="5" pname="c" cue="true" accid.ges="n" />
                                        <note xml:id="note-L7F1" dur="8" oct="5" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                    <beam xml:id="beam-L8F1-L9F1">
                                        <note xml:id="note-L8F1" dur="8" oct="5" pname="c" cue="true" accid.ges="n" />
                                        <note xml:id="note-L9F1" dur="8" oct="5" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                    <beam xml:id="beam-L10F1-L11F1">
                                        <note xml:id="note-L10F1" dur="8" oct="5" pname="c" cue="true" accid.ges="n" />
                                        <note xml:id="note-L11F1" dur="8" oct="5" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                </layer>
                                <layer xml:id="layer-L4F2N2" n="2">
                                    <beam xml:id="beam-L4F2-L5F2">
                                        <note xml:id="note-L4F2" dur="8" oct="4" pname="c" cue="true" accid.ges="n" />
                                        <note xml:id="note-L5F2" dur="8" oct="4" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                    <beam xml:id="beam-L6F2-L7F2">
                                        <note xml:id="note-L6F2" dur="8" oct="4" pname="c" cue="true" accid.ges="n" />
                                        <note xml:id="note-L7F2" dur="8" oct="4" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                    <beam xml:id="beam-L8F2-L9F2">
                                        <note xml:id="note-L8F2" dur="8" oct="4" pname="c" cue="true" accid.ges="n" />
                                        <note xml:id="note-L9F2" dur="8" oct="4" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                    <beam xml:id="beam-L10F2-L11F2">
                                        <note xml:id="note-L10F2" dur="8" oct="4" pname="c" cue="true" accid.ges="n" />
                                        <note xml:id="note-L11F2" dur="8" oct="4" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                </layer>
                            </staff>
                        </measure>
                        <measure xml:id="measure-L12">
                            <staff xml:id="staff-L12F1N1" n="1">
                                <layer xml:id="layer-L12F1N1" n="1">
                                    <beam xml:id="beam-L13F1-L14F1">
                                        <note xml:id="note-L13F1" dur="8" oct="5" pname="c" cue="true" accid.ges="n" />
                                        <note xml:id="note-L14F1" dur="8" oct="5" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                    <beam xml:id="beam-L15F1-L16F1">
                                        <note xml:id="note-L15F1" dur="8" oct="5" pname="c" cue="true" accid.ges="n" />
                                        <note xml:id="note-L16F1" dur="8" oct="5" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                    <beam xml:id="beam-L17F1-L18F1">
                                        <note xml:id="note-L17F1" dur="8" oct="5" pname="c" cue="true" accid.ges="n" />
                                        <note xml:id="note-L18F1" dur="8" oct="5" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                    <beam xml:id="beam-L19F1-L20F1">
                                        <note xml:id="note-L19F1" dur="8" oct="5" pname="c" cue="true" accid.ges="n" />
                                        <note xml:id="note-L20F1" dur="8" oct="5" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                </layer>
                                <layer xml:id="layer-L12F2N2" n="2">
                                    <beam xml:id="beam-L13F2-L14F2">
                                        <note xml:id="note-L13F2" dur="8" oct="4" pname="c" cue="true" stem.dir="down" accid.ges="n" />
                                        <note xml:id="note-L14F2" dur="8" oct="4" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                    <beam xml:id="beam-L15F2-L16F2">
                                        <note xml:id="note-L15F2" dur="8" oct="4" pname="c" cue="true" stem.dir="down" accid.ges="n" />
                                        <note xml:id="note-L16F2" dur="8" oct="4" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                    <beam xml:id="beam-L17F2-L18F2">
                                        <note xml:id="note-L17F2" dur="8" oct="4" pname="c" cue="true" stem.dir="down" accid.ges="n" />
                                        <note xml:id="note-L18F2" dur="8" oct="4" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                    <beam xml:id="beam-L19F2-L20F2">
                                        <note xml:id="note-L19F2" dur="8" oct="4" pname="c" cue="true" stem.dir="down" accid.ges="n" />
                                        <note xml:id="note-L20F2" dur="8" oct="4" pname="d" cue="true" accid.ges="n" />
                                    </beam>
                                </layer>
                            </staff>
                        </measure>
                        <measure xml:id="measure-L21">
                            <staff xml:id="staff-L21F1N1" n="1">
                                <layer xml:id="layer-L21F1N1" n="1">
                                    <note xml:id="note-L22F1" dur="4" oct="5" pname="c" cue="true" accid.ges="n" />
                                    <note xml:id="note-L23F1" dur="4" oct="5" pname="d" cue="true" accid.ges="n" />
                                    <note xml:id="note-L24F1" dur="4" oct="5" pname="c" cue="true" accid.ges="n" />
                                    <note xml:id="note-L25F1" dur="4" oct="5" pname="d" cue="true" accid.ges="n" />
                                </layer>
                                <layer xml:id="layer-L21F2N2" n="2">
                                    <note xml:id="note-L22F2" dur="4" oct="4" pname="c" cue="true" accid.ges="n" />
                                    <note xml:id="note-L23F2" dur="4" oct="4" pname="d" cue="true" accid.ges="n" />
                                    <note xml:id="note-L24F2" dur="4" oct="4" pname="c" cue="true" accid.ges="n" />
                                    <note xml:id="note-L25F2" dur="4" oct="4" pname="d" cue="true" accid.ges="n" />
                                </layer>
                            </staff>
                        </measure>
                    </section>
                </score>
            </mdiv>
        </body>
    </music>
</mei>
@lpugin
Copy link
Contributor

lpugin commented Nov 16, 2023

image

@craigsapp
Copy link
Contributor Author

Thanks! Not so fast, though 😉

@lpugin
Copy link
Contributor

lpugin commented Nov 16, 2023

(I was waiting for this music-encoding/music-encoding#926)

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

No branches or pull requests

2 participants