relative note size, was: Re: lilypond-user Digest, Vol 139, Issue 68

2014-08-02 Thread Patrick or Cynthia Karl
Sorry for the poor Subject.

On Aug 2, 2014, at 10:01 AM, Patrick or Cynthia Karl wrote:

 
 I frequently need do something like:  c \tweak font-size #-2 c' in order to 
 show that one of the two notes is preferred, but the other one is acceptable. 
  The problem is that the -2 in the \tweak command is an absolute value, 
 i.e., it is not relative to the fontSize being used.  If the fontSize were 
 -3, e.g., then the smaller note would actually be bigger than the preferred 
 one.
 
 What I would like to do is substitute for the -2 the value fontSize-2.  
 Is this possible?  If so,how?
 
 


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: relative note size, was: Re: lilypond-user Digest, Vol 139, Issue 68

2014-08-02 Thread Pierre Perol-Schneider
Hi,

2014-08-02 17:13 GMT+02:00 Patrick or Cynthia Karl pck...@mac.com:


 What I would like to do is substitute for the -2 the value fontSize-2.
  Is this possible?  If so,how?


\version 2.18.2

mySize = -3

\relative c'' {
  \once\set fontSize = \mySize
  c \tweak  font-size #(- mySize 2) c'
}

HTH,
Pierre
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user