lilypond-user
[Top][All Lists]
Advanced

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

Re: Parenthesizing chord names


From: Kieren MacMillan
Subject: Re: Parenthesizing chord names
Date: Sun, 1 Mar 2009 22:22:13 -0500

Hi all,

This may be the easiest solution?

\version "2.12.2"

#(define (left-parenthesis-ignatzek-chord-names in-pitches bass inversion context) (markup #:line ("( " (ignatzek-chord-names in-pitches bass inversion context))))

#(define (right-parenthesis-ignatzek-chord-names in-pitches bass inversion context) (markup #:line ((ignatzek-chord-names in-pitches bass inversion context) " )")))

LPC = { \set chordNameFunction = #left-parenthesis-ignatzek-chord- names } RPC = { \set chordNameFunction = #right-parenthesis-ignatzek-chord- names }
NPC = { \unset chordNameFunction }

chordset = \chordmode
{
  c1:7 g1:7
  \LPC a1:7 \NPC f1:7
  c1:7 \RPC g1:7 \NPC
  c1:7 g1:7
}

\score
{
  \new ChordNames \chordset
}

Hope this helps!
Kieren.




reply via email to

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