对lillypond文件的修改

时间:2015-08-08 08:39:47

标签: lilypond

这是我的代码:

\begin{lilypond}
\version "2.17.27"
\language "english"
\relative{
  \time 2/4
  c' c _"C.1"|
  c cs |
  c d |
  c ds |
  c e |
  c f |
  c g' |
  c, a' |
  c, as' |
  c, b' |
}
\end{lilypond}

它产生了这个:

enter image description here

我需要什么,不知道该怎么做:

  1. 取下谱号和仪表标记
  2. 而不是“C.1”把俄语“Ч.1”
  3. 将“C.1”文本移到第一个音高下方,因此它很好地居中。

1 个答案:

答案 0 :(得分:1)

以下代码可以解决这个问题:

\version "2.17.27"
\language "english"
\relative{
  \omit Staff.Clef
  \omit Staff.TimeSignature
  \time 2/4
  c' _"Ч.1" c |
  c cs |
  c d |
  c ds |
  c e |
  c f |
  c g' |
  c, a' |
  c, as' |
  c, b' |
}

只需将其放入名为document.ly的文件中(例如)并在其上运行lilypond:

lilypond --pdf document.ly

(如果您想要PNG作为结果,请将--pdf替换为--png)。这应该产生一个包含以下内容的PDF:

enter image description here

在Ubuntu Vivid(15.04)上使用GNU LilyPond 2.18.2进行测试。