Music Notation Markup

From StickiWiki

Jump to: navigation, search

You can display standard staff music notation in Wiki pages using a notation description system called Lilypond. You can display a single staff or multiple staffs. When creating music notation on the site, please keep in mind the restrictions in the StickiWiki Policy.

Basics

Lilypond uses normal text to describe the staff notation to be displayed. A complete description of this sophisticated notation system is beyond the scope of this article, but you can find the documentation at the Lilypond site. It is not as complex as it looks at first glance.

To tell the Wiki that the information should be interpreted as Lilypond music notation, rather than text, you need to sandwich it between a <music> and a </music> tag. Below is the Wiki text for a short scrap of music notation:

<music>
	\notes \relative c' { 
		e16-.->a(b gis)a-.->c(d b)c-.->e(f dis)e-.->a(b a)
		gis(b e)e,(gis b)b,(e gis)gis,(b e)e,(gis? b e)
	}
</music>

Below is the diagram produced by this text:

music[listen]


The "listen" link above will take you to a MIDI file for the music shown, and it is generated along with the notation.

Where did this come from?

The text-to-rendered-notation system was created by the Lilypond team as a standalone application for creating printed sheet music. This was made accessible to Wiki as part of the WikiTeX project, which includes a variety of graphic display modules for everything from mathematical symbols to Go games.

Personal tools