Chord Pro
Description
Use ChordPro formatted lyrics and tablature in a PmWiki page to embed and display ChordPro-formatted song sheets into a wiki page.
Markup
ChordPro is an early text format which was used to quickly generate song list with the chords mixed in with the lyrics. In many ways it is very wiki-like. Its goal is to make a machine-readable songsheet syntax, suitable for pretty-printing, which is also relatively easy on human eyes.
This recipe adds custom markup -
- for embedding ChordPro text within a wiki page.
Within the custom markup ChordPro directives consist of keywords encapsulated in braces (curly brackets), viz "{keyword}",
and text representing lyrics, within which chords, signified by square brackets, viz "[C#m7]", are embedded.
||:
text :||
See ChordPro markup for details.
Formatting
All formatting is controlled by CSS. By default the chords and lyrics text is monospaced and the same size, however this is not necessary.
The spacing between the chording and the lyrics is controlled by the line-height
CSS property.
The spacing between each line of the song is controlled by padding above the chords and padding below the lyrics.
Modify chordpro.css
to change colours, font-size, font-family, spacing etc. It is quite easy to do so and the CSS file is commented.
Installation
Download and unzip the archive chordpro-2022-01-22.zipΔ.
- move the
chordpro.php
file to the/cookbook/
directory - move the
chordpro.css
file to the/pub/css/
directory unless you have customised it previously
Add the following line to config.php
@include_once("$FarmD/cookbook/chordpro.php");
Notes
Releases
Contributors
- simon - CSS, subsequent versions and updates
- Sproaticus - original version
See also
- Cookbook:AbcMusic - Display music scores from abc notation
- Cookbook:Music - Display music scores from various ascii notations (abc, abctab, asciitab, tab)
Related pages
- ChordPro Chord Sheets ChordPro chord sheet documentation and examples
- ChordPro Text Format ChordPro Basics and text format
- ChordPro-Markup ChordPro markup supported by this recipe
- ChordPro-Sandbox Test and try out ChordPro
- ChordPro-Talk Discussion of ChordPro
- ChordPro-Users User notes for the Chord Pro recipe.
References
- Web Chord, an online program which takes ChordPro files and makes them look pretty, and Chordpro format
- Chordie -- https://www.chordie.com/ Search Engine specialising in Chopro-files
- Chordpro markup
- http://linkesoft.com/songbook/manual.html#chordproformat
- http://mujweb.cz/www/danielpolansky/chordpack/chordpack-documentation.html#quick
User notes +1: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.