> On Jun 29, 2017, at 9:33 AM, David Kastrup <d...@gnu.org> wrote:
> 
> Stan Sanderson <stans...@gmail.com <mailto:stans...@gmail.com>> writes:
> 
>>> On Jun 28, 2017, at 8:53 PM, Stanton Sanderson <stans...@gmail.com> wrote:
>>> 
>>> 
>>>> On Jun 28, 2017, at 8:48 PM, Andrew Bernard <andrew.bern...@gmail.com> 
>>>> 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

Thank you David (for the solution), Pierre (for the LSR update) and Andrew (for 
the suggestion).
Stan

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

Reply via email to