[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compact Chord Charts

From: Richard Shann
Subject: Compact Chord Charts
Date: Fri, 19 Sep 2014 19:21:56 +0100

When chord symbols are displayed on small hand-held devices (e.g.
smartphones) they will be difficult to read unless the elements are
arranged more compactly than the standard LilyPond chord symbols.
There are commercial programs out there that offer this facility.
I have been experimenting with designing these more compact chord
symbols using the chordExceptions mechanism, but to do the job properly
requires modifying LilyPond itself(*).
I have a working prototype and would like to develop this as proper code
that could be included in LilyPond. 
To do this I think I need to have an additional property to be used via
something like this

(if (ly:context-property-where-defined context 'compact)

to decide whether to format the chord symbol in a compact fashion or to
use the default formatting.
If this sounds right, could someone advise what the LilyPond syntax
would be needed to trigger this conditional?
I was guessing it might be

\layout {
        \context  {
        compact = ##t

but whatever I try I just get an empty list for that property.


(*) as an example, bass inversions are hard-coded to use the same markup
as the root note, but for a compact symbol they need to have the
accidental differently placed.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]