Re: lilypond-user Digest, Vol 139, Issue 68

2014-08-02 Thread Patrick or Cynthia Karl

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


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: lilypond-user Digest, Vol 139, Issue 68

2014-08-02 Thread David Kastrup

Can you please use more descriptive subject lines?  You don't even refer
to a previous posting.

Patrick or Cynthia Karl pck...@mac.com writes:

 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?

This should probably work using something like

  c \offset font-size #-2 c'

but apparently it doesn't.

-- 
David Kastrup

___
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


Re: lilypond-user Digest, Vol 139, Issue 68

2014-08-02 Thread David Nalesnik
On Sat, Aug 2, 2014 at 10:17 AM, David Kastrup d...@gnu.org wrote:


 Can you please use more descriptive subject lines?  You don't even refer
 to a previous posting.

 Patrick or Cynthia Karl pck...@mac.com writes:

  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?

 This should probably work using something like

   c \offset font-size #-2 c'

 but apparently it doesn't.


It would be nice, yes, but certain properties can't be set to a procedure.

Compare:

\version 2.19.10

{
  \override NoteHead.font-size = 5
  c''4
}

{
  \override NoteHead.font-size = #(lambda (grob) 5)
  c''4
}


The second has no effect.

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


Re: lilypond-user Digest, Vol 139, Issue 68

2014-08-02 Thread David Kastrup
David Nalesnik david.nales...@gmail.com writes:

 It would be nice, yes, but certain properties can't be set to a procedure.

 Compare:

 \version 2.19.10

 {
   \override NoteHead.font-size = 5
   c''4
 }

 {
   \override NoteHead.font-size = #(lambda (grob) 5)
   c''4
 }


 The second has no effect.

Huh, I remember something like that.  At some point of time, we probably
should see whether it is possible to do something about that.  But it
was sort of non-trivial if I remember correctly.

-- 
David Kastrup

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


Re: lilypond-user Digest, Vol 139, Issue 68

2014-08-02 Thread Werner LEMBERG

 It would be nice, yes, but certain properties can't be set to a
 procedure. [...]
 
 Huh, I remember something like that.  At some point of time, we
 probably should see whether it is possible to do something about
 that.  But it was sort of non-trivial if I remember correctly.

Do we have a tracker item for that?


Werner

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