出于某种原因,这有效:
addlyrics {Drei -- del, drei -- del, drei -- del, I made it out of clay
When it's dry and rea -- dy, o drei -- del I shall play}
这不会:
thing = {Drei -- del, drei -- del, drei -- del, I made it out of clay
When it's dry and rea -- dy, o drei -- del I shall play}
addlyrics {thing}
我尝试将 \addlyrics 放入变量中,添加和删除 { },以及我能想到的其他一切。 文档没有专门针对这种情况,但我到处使用变量,除了这里之外,几乎没有问题。 思潮?
尝试:
thing = addLyrics {Drei -- del, drei -- del, drei -- del, I made it out of clay
When it's dry and rea -- dy, o drei -- del I shall play}
thing
实际尝试后,它不起作用! LilyPond不知道score
块之外的addlyrics
是什么。 所以让我们试试这个:
version "2.19.83"
theLyrics = lyricmode {
Drei -- del, drei -- del, drei -- del, I made it out of clay
When it's dry and rea -- dy, o drei -- del I shall play
}
melody = relative {
g'8 e g e g e r e |
g8 g f e d4 r |
f8 d f d f d r d |
g8 f e d c4 r |
}
score {
new Staff melody
addlyrics theLyrics
layout {}
midi {}
}