I'm having difficulty demonstrating that this works. \layout { \context { \Lyrics \consists "Tweak_engraver" }} ...
12 years, 10 months ago
(2012-05-21 06:25:13 UTC)
#1
I'm having difficulty demonstrating that this works.
\layout { \context { \Lyrics \consists "Tweak_engraver" }}
\relative c' {c d e f }
\addlyrics { ut \tweak #'color #'red re mi fa }
?
On 2012/05/21 06:25:13, Keith wrote: > I'm having difficulty demonstrating that this works. > > ...
12 years, 10 months ago
(2012-05-21 07:49:47 UTC)
#2
On 2012/05/21 06:25:13, Keith wrote:
> I'm having difficulty demonstrating that this works.
>
> \layout { \context { \Lyrics \consists "Tweak_engraver" }}
> \relative c' {c d e f }
> \addlyrics { ut \tweak #'color #'red re mi fa }
> ?
This "\consists" has the same effect as this patch, making tweaks work in
lyrics, so you either need this patch, or this context def redefinition but not
both. The symbol 'red is not a valid color, but the value of the variable red,
namely '(1.0 0.0 0.0), is. If you write #red or #'(1.0 0.0 0.0) instead of
#'red you will be able to see an effect.
On 2012/05/21 14:47:41, janek wrote: > Cool! So for example http://lsr.dsi.unimi.it/LSR/Item?id=643 will work without > ...
12 years, 10 months ago
(2012-05-21 15:34:14 UTC)
#5
On 2012/05/21 14:47:41, janek wrote:
> Cool! So for example http://lsr.dsi.unimi.it/LSR/Item?id=643 will work
without
> having to do something in \layout block.
Well, it is not exactly like the rest of the snippet is easy-peasy.
> I love changes like this!
I have the strong suspicion that the genesis of this snippet included half an
hour of head-scratching and code-rewriting because the tweak would just refuse
to work.
It is not really a spectacular change. Just one surprise less.
Issue 6221046: Allow tweaks in Lyrics.
(Closed)
Created 12 years, 10 months ago by dak
Modified 12 years, 10 months ago
Reviewers: Keith, janek
Base URL: http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Comments: 0