Play along with ChordPro
Configuration Files
When browsing through the wiki entries about ChordPro's file format and the command-line options, you continually find references to the option to use a configuration file for certain things. In fact, this kind of processing is far more powerful than the command-line parameters or the graphical interface. A detailed description of the extensive possibilities of the configuration file can also be found in the wiki [6].
Typical examples of the need for an external control file include printing fingering diagrams for instruments that are not directly supported, outputting alternative fingerings, and displaying chords that ChordPro does not know and that you therefore have to specify explicitly. Listing 4 shows you an example of a wiki fingering image, marginally adapted for our purposes, which defines two variants of the B flat major chord in the low and high registers in the configuration file.
Listing 4
Adapted Wiki Fingering
// The default for "base" is 1. // Use 0 for an empty string and // -1 for a damped string. "chords" : [ { "name" : "B(low)", "base" : 1, "frets" : [ 1, 1, 3, 3, 3, 1 ], "fingers" : [ 1, 1, 2, 3, 4, 1 ], }, { "name" : "B(high)", "base" : 6, "frets" : [ 1, 3, 3, 2, 1, 1 ], "fingers" : [ 1, 3, 4, 2, 1, 1 ], }, ],
Conclusions
ChordPro fully lives up to its reputation as the reference software for the ChordPro markup format – no matter whether you prefer the command-line version or the GUI. The program does a really good job of the things it sets out to do and can be a good option provided that the basic functions are all you need for the time being. In general, the terminal version of ChordPro is more powerful and practical than the GUI version. The editor in particular lacks functionally, so you might prefer your favorite editor.
However, the widely used editors based on Gtksourceview (like Gedit) or KatePart (Kate) do not have syntax highlighting for the ChordPro format. At least there is a plugin for Vim [7]. But even without syntax highlighting, it is worth learning the various command-line and configuration options. This is the only way to visualize unknown chords in the printed output.
Infos
- ChordPro: https://github.com/ChordPro/chordpro
- File format specification: https://github.com/ChordPro/chordpro/wiki/ChordPro-File-Format-Specification
- MuseScore: https://musescore.org/
- LilyPond: https://lilypond.org
- Chordii: https://sourceforge.net/projects/chordii/
- Configuration file description: https://github.com/ChordPro/chordpro/wiki/ChordPro-Configuration-File
- Syntax highlighting for ChordPro in Vim: https://github.com/vim-scripts/chordpro.vim/blob/master/syntax/chordpro.vim
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.