bug-lilypond
[Top][All Lists]
Advanced

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

Re: \balloonText applied to single note errors with symbol->string ??


From: David Kastrup
Subject: Re: \balloonText applied to single note errors with symbol->string ??
Date: Sat, 28 Sep 2019 21:54:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> Hi,
>
> the code below
>
> \layout { \context { \Voice \consists "Balloon_engraver" } }
> { c'-\balloonText #'(2 . 0) \markup { "1" } }
>
> returns (in 2.21.0):
> ERROR: In procedure symbol->string:
> ERROR: Wrong type argument in position 1 (expecting symbol): ()
>
> 2.18.2 gives a more useful message:
> /home/hermann/lilypond/usr/share/lilypond/current/scm/lily-library.scm:242:8:
> In procedure symbol->string in expression (process-procedure book
> paper ...):
> /home/hermann/lilypond/usr/share/lilypond/current/scm/lily-library.scm:242:8:
> Wrong type argument in position 1 (expecting symbol): ()
>
> Though, I've no clue where symbol->string comes into the game...

In lily/balloon-engraver.cc

> Ofcourse the NR recommends to use balloonText _inside_ of chords, and
> indeed the problem goes away, wrapping the note in an event-chord.
> But shouldn't it work as a postevent to a single note, too??

The implementation does not work with separate AnnotateOutput events
(more exactly, they require specifying the particular grob type to use
since usually a number of grobs could be annotated).  One could try to
capture all rhythmic-events and annotate them all.  It's all reasonably
icky stuff that should at one point of time be upgraded to look like
what we do with footnotes.  As a stopgap measure, one could use the
following patch for a bit nicer behavior.

Attachment: 0001-Warn-about-balloonText-outside-of-chords.patch
Description: Text Data


-- 
David Kastrup

reply via email to

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