lilypond-user
[Top][All Lists]
Advanced

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

Re: Is there a get-context procedure?


From: Paul Morris
Subject: Re: Is there a get-context procedure?
Date: Thu, 25 Sep 2014 06:47:19 -0700 (PDT)

Richard Shann-2 wrote
> Thinking about this after receiving your email, I realize that
> ultimately what I am trying to do is access the font-size that is being
> used for the markup being generated. Perhaps this is a simpler question
> - can a markup be constructed to change depending on the font-size it is
> being invoked with?

Hmmm... will something like this do what you need?
Cheers,
-Paul

\version "2.18.2"

music = { 
  <c e g>4 
  <d f a> 
  <e g b> 
  <f a c>  % output as "C6 sus4", why not just "F"?
}

\new ChordNames \with {
  \override ChordName.font-size = #-2
} {
  \music
}

% http://lilypond.org/doc/v2.18/Documentation/internals/chordname



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Is-there-a-get-context-procedure-tp166768p166800.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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