如何将 midi 导出集成到现有的 lilypond 乐谱中

How to integrate midi export into existing lilypond score

我正在尝试对现有的 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.

我会将音乐的每个小部分分配给单独的变量,然后为每个单独的乐谱块创建单独的乐谱块,并仅为 midi 输出创建一个独特的乐谱块:

\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