Richard Shann-2 wrote
> 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  {
>       \ChordNames
>       compact = ##t
>       }
> 
> but whatever I try I just get an empty list for that property.

As far as I know, to introduce a custom context property like this, you
first need to add it to the list of:

  all-translator-properties

using a procedure like:

  translator-property-description

as found in: 

  scm/define-context-properties.scm

After that you should be able to set it to #t like you want.

HTH,
-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Compact-Chord-Charts-tp166609p166645.html
Sent from the Dev mailing list archive at Nabble.com.

_______________________________________________
lilypond-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to