Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Mar 31, 2020
1 parent c7298ac commit 2d683f5
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ This is an autogenerated overview of the testfiles.
![ornamentaccid.mei](ornamentaccid.preview.png)
### [tiedchords.mei](tiedchords.mei)
![tiedchords.mei](tiedchords.preview.png)
### [merging-rests.mei](merging-rests.mei)
![merging-rests.mei](merging-rests.preview.png)
### [annots-and-comments.mei](annots-and-comments.mei)
![annots-and-comments.mei](annots-and-comments.preview.png)
### [enforced-layout.mei](enforced-layout.mei)
Expand Down
80 changes: 80 additions & 0 deletions tests/merging-rests.mei
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://music-encoding.org/schema/3.0.0/mei-all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<mei xmlns="http://www.music-encoding.org/ns/mei" meiversion="3.0.0" xmlns:meiler="NS:MEILER_TEST">
<meiHead>
<fileDesc>
<titleStmt>
<title>Rests in mulitple layers</title>
</titleStmt>
<pubStmt>
<respStmt>
<persName>Klaus Rettinghaus</persName>
</respStmt>
</pubStmt>
<seriesStmt>
<title>MEILER test files</title>
</seriesStmt>
</fileDesc>
</meiHead>
<music>
<body>
<mdiv>
<score>
<scoreDef meter.count="3" meter.unit="4">
<staffGrp>
<staffDef n="1" clef.line="2" clef.shape="G" lines="5" />
</staffGrp>
</scoreDef>
<section>
<measure n="1" label="three distinct measure rest">
<staff n="1">
<layer n="1">
<mRest />
</layer>
<layer n="2">
<mRest />
</layer>
<layer n="3">
<mRest />
<annot>LilyPond will merge this one with layer one.</annot>
</layer>
</staff>
</measure>
<measure n="2">
<staff n="1">
<layer n="1">
<rest dur="4" xml:id="rest01a" />
<rest dur="4" sameas="#rest02b" />
<rest dur="4" xml:id="rest01c" />
</layer>
<layer n="2">
<rest sameas="#rest01a" />
<rest dur="4" xml:id="rest02b" loc="6" color="gray"/>
<rest dur="4" xml:id="rest02c" />
</layer>
<layer n="3">
<rest sameas="#rest01a" />
<rest sameas="#rest02b" />
<space dur="4" xml:id="space03" />
</layer>
</staff>
</measure>
<measure n="3" label="three merged measure rest">
<staff n="1">
<layer n="1">
<mRest xml:id="mrest01" />
</layer>
<layer n="2">
<mRest sameas="#mrest01" xml:id="mrest02" />
</layer>
<layer n="3">
<mRest sameas="#mrest02" xml:id="mrest03" />
</layer>
</staff>
</measure>
</section>
</score>
</mdiv>
</body>
</music>
</mei>
Binary file added tests/merging-rests.preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions tests/merging-rests.preview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2d683f5

Please sign in to comment.