lilypond-user
[Top][All Lists]
Advanced

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

Re: 2.16: warning: type check for `stencil' failed


From: David Kastrup
Subject: Re: 2.16: warning: type check for `stencil' failed
Date: Thu, 04 Apr 2013 16:54:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> James Harkins <address@hidden> writes:
>
>> It seems that if I write:
>>
>>   \override Staff.TimeSignature #'stencil = ##f
>>
>> ... there's no problem. But this:
>>
>>   \override Staff.TimeSignature #'stencil = ##t
>>
>> ... produces:
>>
>> warning: type check for `stencil' failed; value `#t' must be of type
>> stencil'
>>
>> I assumed the opposite of #f would be #t. Is that not a valid
>> assumption?
>
> No.  stencil is set to the actual shape being typeset.  #f means a
> complete omission of the typesetting which does not require further
> information.
>
> #t, in contrast, is not a valid description of output.  You might think
> of it as telling LilyPond "I want something here" instead of "I want
> nothing here", but "nothing" is well-defined, and "something" isn't.
>
>> (I ended up using the override to ##t because merely \revert-ing did
>> not cause time signatures to reappear after that point.)
>
> You can try \temporary\override ... \revert instead for versions of
> 2.17.6 or greater.

Strike the latter: TimeSignature is originally set up at Global level,
so reverting at Score level should have worked fine for making the
original definition emerge again.

Can you show some code exhibiting your problem?

-- 
David Kastrup




reply via email to

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