bug-lilypond
[Top][All Lists]
Advanced

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

Fwd: scheme spanner in input/regression/scheme-text-spanner.ly not quote


From: Reinhold Kainhofer
Subject: Fwd: scheme spanner in input/regression/scheme-text-spanner.ly not quote-proof
Date: Mon, 30 Jul 2012 16:19:31 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0

According to David's response (which I will also forward from -devel),
the problem is that the addQuote (and the part-combiner) use a Global
context from the moment the part-combiner is initialized rather than
when addQuote is called. Thus the Global context is missing information
about the new grob...

We had a similar problem with the RemoveEmptyStaff context, which we
fixed by turning it into a context mod instead, which can later be
inserted into the current context. I suppose a similar solution could
fix this problem, too.

Cheers,
Reinhold


-------- Original Message --------
Subject: scheme spanner in input/regression/scheme-text-spanner.ly not
quote-proof
Date: Thu, 26 Jul 2012 20:10:13 +0200
From: Reinhold Kainhofer <address@hidden>
Organization: FAM, TU Wien
To: LilyPond Development <address@hidden>

The text spanner implemented in scheme (which is also used as a basis
for David's measure counter engraver) seems to work fine in the regtest,
but apparently it is not quote-proof.

In particular, if you try call \addQuote on some music that contains
\schemeTextSpannerStart or \schemeTextSpannerEnd, then you get the
following warnings and the text spanner is not quoted:

scheme-text-spanner.ly:210:5: warning: Event class should be a list
  a4
     b\schemeTextSpannerStart c d |
scheme-text-spanner.ly:212:7: warning: Event class should be a list
  a4 b
       c\schemeTextSpannerEnd d |

So apparently the scheme way to add new event classes is not entirely
correct...
Sample file (regtest adapted to quote the music) is attached.

Any idea about the correct fix to this?

Thanks,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://www.kainhofer.com
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * Edition Kainhofer, Music Publisher, http://www.edition-kainhofer.com




Attachment: scheme-text-spanner.ly
Description: Text Data

Attachment: Attached Message Part
Description: Text document


reply via email to

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