The sync element is used for synchronizing different musical phrases that are to be rendered as units. For audio they need to be played together, for notation they are to be displayed in parallel.
An MML-sensitive program will need to apply this functionality as an XML parser will merely render the content in text format.
| Start | Content | End | ||
|---|---|---|---|---|
| Tag | Attribute | Value | ||
| <sync | some attribute= | "xxx" /> | EMPTY | forbidden |
In this example elements with ID values "treb" and "bass" are synchronized.
<?xml version="1.0"?>
<?xml-stylesheet href="../../style/music.css" type="text/css"?>
<mml xmlns="http://www.musicmarkup.info/dtd">
<head>
...
<sync match="treb" with="bass" />
</head>
© 1999, 2000 Author: Jacques Steyn