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

cross staff stems doesn't work with mei2mup-1.0.4.xsl #8

Open
ahankinson opened this issue Apr 26, 2016 · 2 comments
Open

cross staff stems doesn't work with mei2mup-1.0.4.xsl #8

ahankinson opened this issue Apr 26, 2016 · 2 comments

Comments

@ahankinson
Copy link
Member

From @ahankinson on May 28, 2015 18:7

From [email protected] on June 04, 2013 09:28:00

What steps will reproduce the problem? The whole input file is attached.

transforming a tune with cross staff stems lead to an exception when running mup on the result. See @@@@ in this example:

    \<measure n="18" right="rptboth">
      \<staff n="1">
    \<layer>
      \<chord dur="4" stem.dir="up">
        \<note pname="e" oct="4" />
        \<note pname="g" oct="4" />
      \</chord>
      \<chord dur="4" stem.dir="up">
        \<note pname="c" oct="6" />
        \<note pname="e" oct="5" />
        \<note pname="c" oct="5" />
      \</chord>
    \</layer>

      \</staff>
      \<staff n="2">
    \<layer>
      \<note pname="c" oct="3" dur="4" stem.dir="up" />
      \<chord dur="4" stem.dir="down">
        \<note pname="g" oct="4" staff="1"/> \<!-- @@@@note in staff 1 -->
        \<note pname="c" oct="4" />
      \</chord>
    \</layer>
      \</staff>
    \</measure> Please provide any additional information below. Making the correction implied in the comments below solves the problem
\<xsl:if test="mei:note[@staff != ancestor::mei:staff/@n]">
  \<xsl:text> with \</xsl:text>
  \<xsl:apply-templates select="mei:note[@staff != ancestor::mei:staff/@n]"/>
  \<xsl:choose>
    \<xsl:when
      test="mei:note[@staff != ancestor::mei:staff/@n][1] &gt; ancestor::mei:staff/@n">
      \<xsl:text> below</xsl:text> \<!-- changed by SL. Was above -->
    \</xsl:when>
    \<xsl:when
      test="mei:note[@staff != ancestor::mei:staff/@n][1] &lt;
    ancestor::mei:staff/@n">
      \<xsl:text> above</xsl:text> \<!-- changed by SL. Was below -->
    \</xsl:when>
  \</xsl:choose>
\</xsl:if>

Attachment: kaleidakustikon_10.xml

Original issue: http://code.google.com/p/music-encoding/issues/detail?id=158

Copied from original issue: music-encoding/music-encoding#158

@ahankinson
Copy link
Member Author

From andrew.hankinson on June 04, 2013 09:57:41

Owner: [email protected]
Labels: Component-Tools Milestone-ReleaseNext

@ahankinson
Copy link
Member Author

From [email protected] on June 11, 2014 13:29:31

Labels: -Priority-Medium Priority-Low

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

1 participant