我正在尝试对现有Lilypond乐谱进行MIDI导出,但是如果有多个职员,则无法执行。我是Lilypond的新手,但是在文档和论坛中遇到过麻烦。
在\ score中包装下面的代码不起作用。如果我采用第一个\ relative c'部分并删除其后的所有内容,则看起来一切正常,但我需要完整的分数,包括纸张和标记说明。
在某些文档中也看到了\ new Staff,但最终还是我刚开始的地方。
\score {
\header{
title = "Exercise: C, D, E Notes"
}
\paper {
#(set-paper-size "arch a" 'landscape)
system-system-spacing #'basic-distance = #20
markup-system-spacing #'basic-distance = #15
indent = 0\cm
}
\markup { \bold "Treble Clef - Right Hand" }
\markup { \small Fingering }
\relative c' {
\time 4/4
\override Staff.TimeSignature #'style = #'()
\clef "treble"
c4 c c c | d d d d | e e e e | e2 e | \break
e4 e e e | d d d d | c c c c | c2 c | \bar "|." \break
}
\markup { \bold "Bass Clef - Left Hand" }
\markup { \small Fingering }
\relative c, {
\time 4/4
\override Staff.TimeSignature #'style = #'()
\clef "bass"
e4 e e e | d d d d | c c c c | c2 c | \break
e4 e e e | d d d d | c c c c | c2 c | \bar "|."
}
\layout { }
\midi { }
}
\version "2.18.2" % necessary for upgrading to future LilyPond versions.
答案 0 :(得分:1)
我将音乐的每个小部分分配给各个变量,然后为每个变量创建单独的乐谱块,并为中音输出创建唯一的乐谱块:
\version "2.18.2" % necessary for upgrading to future LilyPond versions.
\header{
title = "Exercise: C, D, E Notes"
}
\paper{
#(set-paper-size "arch a" 'landscape)
system-system-spacing.basic-distance = #20
markup-system-spacing.basic-distance = #15
indent = 0\cm
}
mark_A = ^\markup { \bold "Treble Clef - Right Hand" }^\markup { \small Fingering }
mark_B = ^\markup { \bold "Bass Clef - Left Hand" }^\markup { \small Fingering }
music_A = \relative c' {
\time 4/4
\override Staff.TimeSignature #'style = #'()
\clef "treble"
c4-\mark_A c c c | d d d d | e e e e | e2 e | \break
e4 e e e | d d d d | c c c c | c2 c | \bar "|." \break
}
music_B = \relative c, {
\time 4/4
\override Staff.TimeSignature #'style = #'()
\clef "bass"
e4-\mark_B e e e | d d d d | c c c c | c2 c | \break
e4 e e e | d d d d | c c c c | c2 c | \bar "|."
}
\score{
\new Staff \music_A
\layout{}
}
\score{
\new Staff \music_B
\layout{}
}
\score{
\new Staff {\music_A \music_B}
\midi{}
}
此处有更多信息:http://lilypond.org/doc/v2.19/Documentation/learning/multiple-staves