From e7e06b74cea0f0e0e7f64e544658d5ecc4784059 Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Thu, 12 Oct 2023 21:06:26 +0200 Subject: [PATCH] Update hello-world examples --- examples/hello-world/empty.mei | 22 +- examples/hello-world/mensural-notes.mei | 124 +++++----- examples/hello-world/short-example.mei | 290 ++++++++++++------------ examples/hello-world/single-measure.mei | 132 +++++------ examples/hello-world/single-note.mei | 66 +++--- examples/hello-world/staves-1-3.mei | 272 +++++++++++----------- 6 files changed, 454 insertions(+), 452 deletions(-) diff --git a/examples/hello-world/empty.mei b/examples/hello-world/empty.mei index 7a149aebe..ce6d176a3 100644 --- a/examples/hello-world/empty.mei +++ b/examples/hello-world/empty.mei @@ -1,14 +1,14 @@ - - + + - - - - - - - - - + + + + + + + + + diff --git a/examples/hello-world/mensural-notes.mei b/examples/hello-world/mensural-notes.mei index 77dac6035..2d1af7792 100644 --- a/examples/hello-world/mensural-notes.mei +++ b/examples/hello-world/mensural-notes.mei @@ -1,64 +1,64 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- -
+ + + + + + + + </titleStmt> + <pubStmt /> + </fileDesc> + </meiHead> + <music> + <body> + <mdiv> + <score> + <scoreDef> + <staffGrp> + <staffGrp symbol="bracket"> + <staffDef n="1" lines="5" clef.shape="G" clef.line="2"> + <label>Canto</label> + </staffDef> + <staffDef n="2" lines="5" clef.shape="G" clef.line="2"> + <label>Tenor</label> + </staffDef> + <staffDef n="3" lines="5" clef.shape="F" clef.line="4"> + <label>Basso</label> + </staffDef> + </staffGrp> + </staffGrp> + </scoreDef> + <section> + <staff n="1"> + <layer n="1"> + <note dur="semibrevis" oct="4" pname="g" /> + <note dur="semibrevis" oct="4" pname="g" /> + <note dur="semibrevis" oct="4" pname="g" /> + <note dur="semibrevis" oct="4" pname="g" /> + <note dur="semibrevis" oct="4" pname="g" /> + <note dur="semibrevis" oct="4" pname="g" /> + <note dur="semibrevis" oct="4" pname="g" /> + <note dur="semibrevis" oct="4" pname="g" /> + </layer> + </staff> + <staff n="2"> + <layer n="1"> + <note dur="brevis" oct="4" pname="g" /> + <note dur="brevis" oct="4" pname="g" /> + <note dur="brevis" oct="4" pname="g" /> + <note dur="brevis" oct="4" pname="g" /> + </layer> + </staff> + <staff n="3"> + <layer n="1"> + <note dur="longa" oct="3" pname="c" /> + <note dur="longa" oct="3" pname="c" /> + </layer> + </staff> + </section> + </score> + </mdiv> + </body> + </music> </mei> diff --git a/examples/hello-world/short-example.mei b/examples/hello-world/short-example.mei index 3af5dbbbf..cc17a341f 100644 --- a/examples/hello-world/short-example.mei +++ b/examples/hello-world/short-example.mei @@ -1,146 +1,146 @@ <?xml version="1.0" encoding="UTF-8"?> -<?xml-model href="https://music-encoding.org/schema/4.0.0/mei-all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?> -<?xml-model href="https://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>A very short example - - - 2019-12-07 - - - - - - - - - - - - - - - - - - - - - - - -
- - Allegro - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - f - f - f - f - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- -
-
\ No newline at end of file + + + + + + + A very short example + + + 2023-10-10 + + + + + + + + + + + + + + + + + + + + + + + +
+ + Allegro + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + f + f + f + f + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ +
+
diff --git a/examples/hello-world/single-measure.mei b/examples/hello-world/single-measure.mei index 8c0f2155f..194b6ce9b 100644 --- a/examples/hello-world/single-measure.mei +++ b/examples/hello-world/single-measure.mei @@ -1,68 +1,68 @@ - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Adagio - f - -
-
-
- -
+ + + + + + + + </titleStmt> + <pubStmt /> + </fileDesc> + </meiHead> + <music> + <body> + <mdiv> + <score> + <scoreDef meter.count="3" meter.unit="4"> + <staffGrp symbol="bracket"> + <staffDef n="1" lines="5" clef.shape="G" clef.line="2" /> + </staffGrp> + </scoreDef> + <section> + <measure n="1"> + <staff n="1"> + <layer n="1"> + <beam> + <note dur="8" oct="5" pname="c" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="5" pname="c" /> + </beam> + <beam> + <note dur="8" oct="5" pname="e" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="5" pname="e" /> + </beam> + <beam> + <note dur="8" oct="5" pname="a" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="5" pname="a" /> + </beam> + </layer> + <layer n="2"> + <beam> + <note dur="8" oct="5" pname="c" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="5" pname="c" /> + </beam> + <beam> + <note dur="8" oct="5" pname="e" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="5" pname="e" /> + </beam> + <beam> + <note dur="8" oct="5" pname="a" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="5" pname="a" /> + </beam> + </layer> + </staff> + <tempo tstamp="1.000000">Adagio</tempo> + <dynam staff="1" tstamp="1.000000">f</dynam> + </measure> + </section> + </score> + </mdiv> + </body> + </music> </mei> diff --git a/examples/hello-world/single-note.mei b/examples/hello-world/single-note.mei index 89d970c2f..89f2e8abf 100644 --- a/examples/hello-world/single-note.mei +++ b/examples/hello-world/single-note.mei @@ -1,35 +1,35 @@ <?xml version="1.0" encoding="UTF-8"?> -<?xml-model href="https://music-encoding.org/schema/4.0.0/mei-all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?> -<?xml-model href="https://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"> - <meiHead> - <fileDesc> - <titleStmt> - <title> - - - - - - - - - - - - - -
- - - - - - - -
-
-
- -
+ + + + + + + + </titleStmt> + <pubStmt /> + </fileDesc> + </meiHead> + <music> + <body> + <mdiv> + <score> + <scoreDef> + <staffGrp> + <staffDef n="1" lines="5" clef.shape="G" clef.line="2" /> + </staffGrp> + </scoreDef> + <section> + <measure n="1"> + <staff n="1"> + <layer n="1"> + <note dur="8" oct="5" pname="c" /> + </layer> + </staff> + </measure> + </section> + </score> + </mdiv> + </body> + </music> </mei> diff --git a/examples/hello-world/staves-1-3.mei b/examples/hello-world/staves-1-3.mei index 6d256fceb..cadc19d31 100644 --- a/examples/hello-world/staves-1-3.mei +++ b/examples/hello-world/staves-1-3.mei @@ -1,137 +1,139 @@ <?xml version="1.0" encoding="UTF-8"?> -<?xml-model href="https://music-encoding.org/schema/4.0.0/mei-all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?> -<?xml-model href="https://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"> - <meiHead> - <fileDesc> - <titleStmt> - <title> - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Adagio - f - a 2 - -
-
-
- -
+ + + + + + + + </titleStmt> + <pubStmt /> + </fileDesc> + </meiHead> + <music> + <body> + <mdiv> + <score> + <scoreDef meter.count="3" meter.unit="4"> + <staffGrp> + <staffGrp symbol="bracket"> + <staffDef n="1" lines="5" clef.shape="G" clef.line="2"> + <label>Oboe, I, II</label> + </staffDef> + <staffDef n="2" lines="5" clef.shape="F" clef.line="4"> + <label>Fagotto, I, II</label> + </staffDef> + </staffGrp> + <staffGrp symbol="bracket"> + <staffDef n="3" lines="5" clef.shape="G" clef.line="2"> + <label>Corno, I, II<lb />in Do|C</label> + </staffDef> + </staffGrp> + </staffGrp> + </scoreDef> + <section> + <measure n="1"> + <staff n="1"> + <layer n="1"> + <beam> + <note dur="8" oct="5" pname="c" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="5" pname="c" /> + </beam> + <beam> + <note dur="8" oct="5" pname="e" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="5" pname="e" /> + </beam> + <beam> + <note dur="8" oct="5" pname="a" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="5" pname="a" /> + </beam> + </layer> + <layer n="2"> + <beam> + <note dur="8" oct="5" pname="c" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="5" pname="c" /> + </beam> + <beam> + <note dur="8" oct="5" pname="e" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="5" pname="e" /> + </beam> + <beam> + <note dur="8" oct="5" pname="a" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="5" pname="a" /> + </beam> + </layer> + </staff> + <staff n="2"> + <layer n="1"> + <beam> + <note dur="8" oct="3" pname="c" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="3" pname="c" /> + </beam> + <beam> + <note dur="8" oct="3" pname="e" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="3" pname="e" /> + </beam> + <beam> + <note dur="8" oct="3" pname="a" /> + <rest dots="1" dur="16" /> + <note dur="32" oct="3" pname="a" /> + </beam> + </layer> + </staff> + <staff n="3"> + <layer n="1"> + <beam> + <chord dur="8"> + <note oct="5" pname="c" /> + <note oct="4" pname="c" /> + </chord> + <rest dots="1" dur="16" /> + <chord dur="32"> + <note oct="5" pname="c" /> + <note oct="4" pname="c" /> + </chord> + </beam> + <beam> + <chord dur="8"> + <note oct="5" pname="e" /> + <note oct="4" pname="e" /> + </chord> + <rest dots="1" dur="16" /> + <chord dur="32"> + <note oct="5" pname="e" /> + <note oct="4" pname="e" /> + </chord> + </beam> + <beam> + <chord dur="8"> + <note oct="5" pname="c" /> + <note oct="4" pname="c" /> + </chord> + <rest dots="1" dur="16" /> + <chord dur="32"> + <note oct="5" pname="c" /> + <note oct="4" pname="c" /> + </chord> + </beam> + </layer> + </staff> + <tempo staff="1" tstamp="1.000000">Adagio</tempo> + <dynam staff="1 2 3" tstamp="1.000000">f</dynam> + <dir place="above" staff="2" tstamp="1.000000"> + <rend fontstyle="italic">a 2</rend> + </dir> + </measure> + </section> + </score> + </mdiv> + </body> + </music> </mei>