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

alignment of CMN and mensuration? #840

Closed
craigsapp opened this issue May 5, 2018 · 5 comments
Closed

alignment of CMN and mensuration? #840

craigsapp opened this issue May 5, 2018 · 5 comments
Labels
backburner mensural Issues related to mensural notation

Comments

@craigsapp
Copy link
Contributor

Is is possible to display CMN and mensuration on the same system? And if so, how to align two staves with the music in CMN/mensuration?

Example attempt, which does not work so great (notes should vertically align between staves):

screen shot 2018-05-05 at 2 41 41 am

Related: it would be nice if the mensuration sign and the time signature aligned vertically. Is there a way of putting the mensuration in the <staffDef>?

<?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-05-05T02:23:51" version="2.0.0-dev-1c60b86">
                    <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-0000002036555238">
                <score xml:id="score-0000001789519180">
                    <scoreDef xml:id="scoredef-0000002145304903" midi.bpm="400">
                        <staffGrp xml:id="staffgrp-0000001894020822" symbol="brace" barthru="true">
                            <staffDef xml:id="staffdef-0000001668535902" clef.shape="C" clef.line="3" meter.count="4" meter.unit="4" meter.sym="common" n="1" lines="5">
                                <label xml:id="label-0000000067778699" />
                            </staffDef>
                            <staffDef xml:id="staffdef-0000000321438431" clef.shape="C" clef.line="3"  n="2" notationtype="mensural" lines="5" />
                        </staffGrp>
                    </scoreDef>
                    <section xml:id="section-0000000940382025">
                        <measure xml:id="measure-L5" n="1">
                            <staff xml:id="staff-L5F2N1" n="1">
                                <layer xml:id="layer-L5F2N1" n="1">
                                    <note xml:id="note-L6F2" dur="1" oct="4" pname="c" accid.ges="n" />
                                    <note xml:id="note-L7F2" dur="1" oct="4" pname="d" accid.ges="n" />
                                    <note xml:id="note-L8F2" dur="1" oct="4" pname="e" accid.ges="n" />
                                </layer>
                            </staff>
                            <staff xml:id="staff-L5F1N1" n="2">
                                <layer xml:id="layer-L5F1N1" n="1">
                                    <mensur tempus="2" prolatio="2"/>
                                    <note xml:id="note-L6F1" dur.ges="1" dur="semibrevis" oct="4" pname="c" accid.ges="n" />
                                    <note xml:id="note-L7F1" dur.ges="1" dur="semibrevis" oct="4" pname="d" accid.ges="n" />
                                    <note xml:id="note-L8F1" dur.ges="1" dur="semibrevis" oct="4" pname="e" accid.ges="n" />
                                </layer>
                            </staff>
                        </measure>
                    </section>
                </score>
            </mdiv>
        </body>
    </music>
</mei>

I tried adding @dur.ges to the mensural notes, but that did not change anything.

Or is there an input option that should be turned on or off?

@rettinghaus
Copy link
Contributor

try these:

SetMensurDot();
SetMensurSign();
SetMensurSlash();
SetProportNum();
SetProportNumbase();

@craigsapp
Copy link
Contributor Author

Thanks!

@craigsapp
Copy link
Contributor Author

Although now the mensuration sign is displayed vertically before the modern time signature:

screen shot 2018-05-05 at 10 57 10 am

(Proportions should not be used in this example, but in any case, adding them will not allow alignment with the modern notation).

<?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-05-05T02:23:51" version="2.0.0-dev-1c60b86">
                    <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-0000002036555238">
                <score xml:id="score-0000001789519180">
                    <scoreDef xml:id="scoredef-0000002145304903" midi.bpm="400">
                        <staffGrp xml:id="staffgrp-0000001894020822" symbol="brace" barthru="true">
                            <staffDef xml:id="staffdef-0000001668535902" clef.shape="C" clef.line="3" meter.count="4" meter.unit="4" meter.sym="common" n="1" lines="5">
                                <label xml:id="label-0000000067778699" />
                            </staffDef>
                            <staffDef xml:id="staffdef-0000000321438431" mensur.sign="C" mensur.dot="true" mensur.slash="1" clef.shape="C" clef.line="3"  n="2" notationtype="mensural" lines="5" />
                        </staffGrp>
                    </scoreDef>
                    <section xml:id="section-0000000940382025">
                        <measure xml:id="measure-L5" n="1">
                            <staff xml:id="staff-L5F2N1" n="1">
                                <layer xml:id="layer-L5F2N1" n="1">
                                    <note xml:id="note-L6F2" dur="1" oct="4" pname="c" accid.ges="n" />
                                    <note xml:id="note-L7F2" dur="1" oct="4" pname="d" accid.ges="n" />
                                    <note xml:id="note-L8F2" dur="1" oct="4" pname="e" accid.ges="n" />
                                </layer>
                            </staff>
                            <staff xml:id="staff-L5F1N1" n="2">
                                <layer xml:id="layer-L5F1N1" n="1">
                                    <note xml:id="note-L6F1" dur.ges="1" dur="semibrevis" oct="4" pname="c" accid.ges="n" />
                                    <note xml:id="note-L7F1" dur.ges="1" dur="semibrevis" oct="4" pname="d" accid.ges="n" />
                                    <note xml:id="note-L8F1" dur.ges="1" dur="semibrevis" oct="4" pname="e" accid.ges="n" />
                                </layer>
                            </staff>
                        </measure>
                    </section>
                </score>
            </mdiv>
        </body>
    </music>
</mei>

@lpugin
Copy link
Contributor

lpugin commented May 7, 2018

Answer to the question: you cannot. I put this on the back burner list.

@lpugin
Copy link
Contributor

lpugin commented Nov 12, 2024

For the record, this will now be possible with the --duration-equivalence option added in #3852, namely --duration-equivalence semibrevis in that case

image

@lpugin lpugin added the mensural Issues related to mensural notation label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backburner mensural Issues related to mensural notation
Projects
None yet
Development

No branches or pull requests

3 participants