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

allow fTrem in beam #3569

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Conversation

rettinghaus
Copy link
Contributor

MEI allows fTrem to be a child of a beam. This PR enables the processing of fTrem within a beam, but skips the drawing of the beam element for now to not get interfering beams.

@lpugin
Copy link
Contributor

lpugin commented Jan 8, 2024

Do you have an example of fTrem within a beam?

@rettinghaus
Copy link
Contributor Author

There can be multiple tremolos beamed together.

<?xml version="1.0" encoding="UTF-8"?>
<mei xmlns="http://www.music-encoding.org/ns/mei" meiversion="5.0+basic">
   <meiHead>
      <fileDesc>
         <titleStmt>
            <title>Beamed tremolos</title>
            <respStmt>
               <persName></persName>
            </respStmt>
         </titleStmt>
         <pubStmt>
            <date isodate="2024-01-09T10:54:54" />
         </pubStmt>
      </fileDesc>
   </meiHead>
   <music>
      <body>
         <mdiv>
            <score>
               <scoreDef>
                  <staffGrp>
                     <staffDef n="1" lines="5" meter.count="4" meter.unit="4">
                        <clef shape="G" line="2" />
                     </staffDef>
                  </staffGrp>
               </scoreDef>
               <section>
                  <measure n="1">
                     <staff n="1">
                        <layer n="1">
                           <beam>
                              <fTrem xml:id="f13p8ozn" dur="8" unitdur="32">
                                 <note xml:id="n5n4d2x" dur="8" pname="f" oct="4" />
                                 <note xml:id="n16ptudj" dur="8" pname="c" oct="5" />
                              </fTrem>
                              <fTrem xml:id="f10q50j2" dur="8" unitdur="32">
                                 <note xml:id="n1tmmoc3" dur="8" pname="f" oct="4" />
                                 <note xml:id="na608sn" dur="8" pname="c" oct="5" />
                              </fTrem>
                           </beam>
                        </layer>
                     </staff>
                  </measure>
               </section>
            </score>
         </mdiv>
      </body>
   </music>
</mei>

@lpugin
Copy link
Contributor

lpugin commented Jan 9, 2024

Thanks. I was actually thinking about how it looks in a real notation example. Sorry, it was not clear.

@rettinghaus
Copy link
Contributor Author

Here you are:

image

Example from Stravinsky's Firebird.

@lpugin lpugin merged commit 9b86804 into rism-digital:develop Jan 9, 2024
5 checks passed
@rettinghaus rettinghaus deleted the develop-beamchild branch January 9, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants