lilypond-user
[Top][All Lists]
Advanced

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

Re: Profondo: note symbols in TupletBracket


From: tisimst
Subject: Re: Profondo: note symbols in TupletBracket
Date: Wed, 2 Sep 2015 11:17:35 -0700 (MST)

David,

On 8/31/2015 5:55 AM, David Stephen Grant [via Lilypond] wrote:
Hi all,
I'm using Abraham's Profondo font, but having some trouble with TupletBrackets.

I would like to indicate the duration of some feathered beamed groups with a TupletBracket showing the total duration. The following simplified code works fine with the default font, but the symbol in the first bracket doesn't print when I switch to Profondo. I also get the error: warning: Found infinity or nan in output. Substituting 0.0

\version "2.19.25"
\include "profondo.ily"
  \override TupletBracket.padding = #1.5
  \override TupletBracket.bracket-visibility = ##t
  
  \once \override TupletNumber.text = \markup { \note #"4" #UP }
  \tuplet 5/8 { a'16 a' a' a' a' }
  
  
  \revert Staff.TupletNumber.font-name
  \once \override TupletNumber.text = \markup { \note #"4" #UP }
  \tuplet 5/8 { a'16 a' a' a' a' }
  
  \override Staff.TupletNumber.font-name = #"ProfondoTupletNumbers"
  \tuplet 5/8 { a'16 a' a' a' a' }
}

As most TupletBrackets should be using the Profondo tuplet number font I thought about reverting to the default for these brackets, but ideally I would prefer not to have to remember to turn Profondo back on afterwards as in the above code.

Any ideas?

I've been thinking about this since you first sent it and it is starting to drive me crazy! I've poured over the code that creates the \note stencil and I can't find anything that would cause it to go crazy like this. The only font it even refers to is the music font, so I don't know why the \markup has a hard time with it. In the example you show (not sure if you are doing anything more complex in the actual score), the \markup doesn't use any text from ProfondoTupletNumbers at all when it draws the \note, so I have to assume the error is caused by the \markup command itself, though I haven't been able to prove that yet.

One way around this (at least to make it less of a typing hassle) is to remove the \override from the \layout block and instead encapsulate it in variables so you can use them on-the-fly, like this:

%%%%%%%%%%%%%

profondoTupletNumeralsOn = \override Staff.TupletNumber.font-name = #"ProfondoTupletNumbers"
profondoTupletNumeralsOff = \revert Staff.TupletNumber.font-name

%%%%%%%%%%%%%


It's probably more than you want to do, but this might be the best thing to do for the time being. Do you use the \note function in your tuplet markings a lot?

Best,
Abraham


View this message in context: Re: Profondo: note symbols in TupletBracket
Sent from the User mailing list archive at Nabble.com.

reply via email to

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