出于某种原因,这可行:
\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放入变量中,添加和删除{},以及我能想到的所有其他内容。文档没有专门针对这种情况,但是我在各处使用变量,除了这里没有什么问题。有想法吗?
答案 0 :(得分:0)
尝试:
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不知道addlyrics
块之外的\score
。因此,让我们尝试一下:
\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 {}
}