lilypond-user
[Top][All Lists]
Advanced

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

Re: Warnings when omitting fingering with overridden orientation


From: Thomas Morley
Subject: Re: Warnings when omitting fingering with overridden orientation
Date: Fri, 2 Sep 2016 21:36:34 +0200

2016-09-02 18:27 GMT+02:00 David Kastrup <address@hidden>:
> Thomas Morley <address@hidden> writes:
>
>> 2016-09-02 16:44 GMT+02:00 Hinrik Örn Sigurðsson <address@hidden>:
>>> If I want to omit the fingering instructions for some part of a score or the
>>> entire thing, I put "\omit Fingering" in the appopriate place. However, it
>>> results in warnings ("programming error: Infinity or NaN encountered") if
>>> "\set fingeringOrientations = #'(left)" has been previously done. The PDF
>>> output is still correct though.
>>>
>>> Test case:
>>>
>>> \version "2.19.47"
>>>
>>> \relative c' {
>>>   \clef treble
>>>   \key d \major
>>>   \set fingeringOrientations = #'(left)
>>>   <fis,-1 a-2 d-5>2 <a-1 e'-5>4 d |
>>>   \omit Fingering
>>>   <a-1 cis-2 fis-4>8 g' g4 cis,2 |
>>> }
>>
>>
>> Try:
>>
>> \relative c' {
>>   \clef treble
>>   \key d \major
>>   \set fingeringOrientations = #'(left)
>>   <fis,-1 a-2 d-5>2 <a-1 e'-5>4 d |
>>   \omit Fingering
>>   \unset fingeringOrientations
>>   <a-1 cis-2 fis-4>8 g' g4 cis,2 |
>> }
>>
>> Obviously the context-property `fingeringOrientations' needs a stencil
>> to deal with, thus unset it.
>
> Arguably, that would be a condition worth detecting and silently
> ignoring.
>
> --
> David Kastrup

Hmm, might be a bit more complicated:

\relative c' {
  \set fingeringOrientations = #'(left)
  <a-1>1
  \omit Fingering
  <a-1>1
}

\relative c' {
  \set fingeringOrientations = #'(left)
  <a-1>1
  \omit Fingering
  <a-1 cis-2 >1
}

No complaints about the first example. Warrants a ticket I'd say.

Cheers,
  Harm



reply via email to

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