lilypond-user
[Top][All Lists]
Advanced

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

Re: old f-clef


From: Pierre Perol-Schneider
Subject: Re: old f-clef
Date: Thu, 29 Jun 2017 16:40:17 +0200

Thank you David, snippet has been updated.
Cheers,
Pierre

2017-06-29 16:33 GMT+02:00 David Kastrup <address@hidden>:
Stan Sanderson <address@hidden> writes:

>> On Jun 28, 2017, at 8:53 PM, Stanton Sanderson <address@hidden> wrote:
>>
>>
>>> On Jun 28, 2017, at 8:48 PM, Andrew Bernard <address@hidden> wrote:
>>>
>>> Hi Stan,
>>>
>>> See LSR:
>>>
>>> http://lsr.di.unimi.it/LSR/Item?id=900
>>>
>>> Andrew
>>>
>>
>> Andrew,
>>
>> I should have known to check the LSR but failed to do so.
>
> Now that I’ve had time to try it, the snippet doesn’t compile (with
> 2.19.63) as is, and I’m still wondering
> what I’m doing.
>
> Error message:
>
> Parsing...
> Interpreting music...
> Preprocessing graphical
> objects.../home/gub/NewGub/gub/target/darwin-x86/src/lilypond-git.sv.gnu.org--lilypond.git-release-unstable/lily/grob-property.cc:242:
> failed assertion `scm_is_null (value) || scm_is_eq (value, marker)'
> Exited with exit status 1.

The LSR sample is broken since instead of _returning_ a proper stencil
from the grob callback, it _overrides_ the grob callback with the
stencil.  This confuses LilyPond's internals enough that it will abort.

Basically you need to replace

  (set! (ly:grob-property grob 'stencil)
      [whatever] )

with just
      [whatever]

whenever it occurs in the callback.  Be sure to remove one closing paren
after [whatever] in order to maintain matched parens.

--
David Kastrup

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user


reply via email to

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