MML example markup

Antonio Vivaldi's Sonata in Sol minore

Last updated: February 2001

NOTE
Although the markup follows music notation, MML is not primarily intended for notation. Delivery should also be possible through synthetic devices.
The images serve as reference only to facilitate understanding of MML.

View this example as an XML file.

The markup below is only for the first page of the score. Markup is thus done as if the first page is the complete score. Markup follows the score for demonstration purposes and bars for different instruments interrupt one another. In practice the markup for an instrument will most probably be completed before the markup string of another instrument is tackled.

<?xml version="1.0" ?> 
<?xml-stylesheet href="../../style/music.css" type="text/css"?> 

<mml xmlns="http://www.musicmarkup.info/dtd">

<head>
  <title>Antonio Vivaldi's Sonata in Sol minore</title>
  <meta http-equiv="Content-Type" 
      content="text/mml; charset=iso-8859-1" />
  <meta lang="it" 
      description="Sonata in Sol minore per 2 Violini e Violoncello o Cembalo" />
  <meta composer="Antonio Vivaldi" lifespan="1678-1741" />

  <band profile="band-one.bnd" href="http://www.wackoband.org/profiles/" />

</head>

mml | head | title | meta | link | band
profile | rel | href

<song key="Bb" note="4">

Violin 1

<!-- == Violin === -->

<instrument noteset="4" type="violin">

<bar barid="viol-1">R2 R G </bar>
<bar barid="viol-2">Eb2. D </bar>

<bar barid="viol-3">5(B. C:16 A) 
    <notation>
      <slurbegin id="s1" beat="3" />
    </notation>
</bar>

type

<bar barid="viol-4">5A (G F):8 Eb (5A G) 
    <notation>
      <slurend end="s1" beat="1" />
      <bindbegin id="b1" beat="2" />
      <bindend end="b1" beat="2.5" />
      <slurbegin id="s2" beat="2" />
      <slurend end="s2" beat="2.5" />
      <bindbegin id="b2" beat="4" />
      <bindend end="b2" beat="4.5" />
      <slurbegin id="s3" beat="4" />
      <slurend end="s3" beat="4.5" />
    </notation>
</bar>

<bar barid="viol-5">Fs G:2 Fs </bar>

<bar barid="viol-6">G R R:8 G Fn:8 </bar>

</instrument>

Violin 2

<!-- Violin 2 -->
  
<instrument type="violin 2">
  
<bar barid="viol2-1">R G D:2
    <notation>
      <slurbegin beat="3" id="s1" />
    </notation>
</bar>
  
<bar barid="viol2-2">D C F:2 
    <notation>
      <slurend end="s1" beat="1" />
      <slurbegin id="s2" beat="3" />
    </notation>
</bar>
  
<bar barid="viol2-3">F Eb:2 (D C):8 
    <notation>
      <slurend id="s2" beat="1" />
      <slurbegin id="s3" beat="4" />
      <slurend end="s3" beat="4.5" />
      <bindbegin id="v2-b1" beat="4" /> 
      <bindend end="v2-b1" beat="4.5" /> 
    </notation>
</bar> 

<bar barid="viol2-4">B Bn (C G):8 C 
    <notation>
      <slurbegin id="s4" beat="3" />
      <slurend end="s4" beat="3.5" />
      <slurbegin id="s5" beat="4" />
    </notation>
  </bar>

<bar barid="viol2-5">C Bb A:2 
    <notation>
      <slurend end="s5" beat="1" />
      <bindbegin id="v2-b2" beat="3" />
      <bindbegin end="v2-b2" beat="3.5" />
    </notation>
</bar>

<bar barid="viol2-6">G:8 D C:8 B D </bar>
</instrument>

Cello

<!-- Cello -->
<instrument noteset="2" type="cello" id="to_be_repeated_1">

<bar barid="cell-1">G. 3(A:8 B Bn) </bar>
<bar barid="cell-2">3(C. B:8) A 3Bb </bar>

<bar barid="cell-3">G:2 Fs:2 </bar>
<bar barid="cell-4">G:2 C:2 </bar>

<bar barid="cell-5">D (Eb B):8 C D 
    <notation>
      <slurbegin id="cello-1" beat="2" />
      <slurend end="cello-1" beat="2.5" />
    </notation>
</bar>

<bar barid="cell-6">G Fs G Bn </bar>

</instrument>

Cembalo

<!-- Cembalo -->
<instrument type="cembalo">
  <bar barid="cemb-1">R 3G [3G D] [3G D 4G]
    <notation clef="F">
      <slurbegin id="cem-s1" beat="4" note="D" />
    </notation>
</bar>

<bar barid="cemb-2">[3G D Eb] C [3F C E] [B D]
    <notation>
      <slurend end="cem-s1" beat="1" note="D" />
      <slurbegin id="cem-s2" note="Eb" />
      <slurbegin id="cem-s3" />
      <slurend end="cem-s2" beat="3" note="Eb" />
      <slurend end="cem-s3" beat="3" note="C" />
      <slurbegin id="cem-s4" beat="3" note="3F" />
      <slurbegin id="cem-s5" beat="4" note="B" />
      <slurbegin id="cem-s6" beat="4" note="D" />
    </notation>
  </bar>

<bar barid="cemb-3">[3F B D] [3Eb D Eb] [A E] (E C):8
    <notation>
      <slurend end="cem-s4" beat="1" note="F" />
      <slurend end="cem-s5" beat="1" note="B" />
      <slurend end="cem-s6" beat="1" note="D" />
      <slurbegin id="cem-s7" beat="2" note="Eb" />
      <slurend end="cem-s7" beat="3" note="Eb" />
      <slurbegin id="cem-s8" beat="3" note="A" />
    </notation>
  </bar>

<bar barid="cemb-4">[3D B] [G Bn] [3Eb:2 G C:2] A 
    <notation>
      <slurend end="cem-s8" beat="1" note="Bb" />
      <slurbegin id="cem-s9" beat="3" note="A" />
    </notation>
</bar> 
  
<bar barid="cemb-5">[3(D Fs) C] [3G Bb] [3(E G) A] [3(D F)]
    <notation>
      <slurend end="cem-s9" beat="1" note="C" />
      <slurbegin id="cem-s10" beat="1" note="C" />
      <slurend end="cem-s10" beat="2" note="Bb" />
    </notation>
</bar>
  
<bar barid="cemb-6">[3(D G) B]:8 R:8 [A D] C [G B] [G D] Fn
    <notation>
      <bindbegin id="cem-b1" beat="2" note="D C" />
      <bindend end="cem-b1" beat="2.5" note="D C" />
      <bindbegin id="cem-b2" beat="4" note="G F" />
      <bindend end="cem-b2" beat="4.5" note="G F" />
    </notation>
</bar>
</instrument> 

<!-- Cembalo bass line -->

<instrument repeat="to_be_repeated_1" type="cembalo">
</instrument>
  
</song>
</mml>

1999, 2000, 2001 © Jacques Steyn