我努力创建一个包含六个不同部分的文档的文档是 遇到了几个问题。有人可以帮忙吗?我正在粘贴我的代码 下面(为了提出问题,我已经稍微减少了一些例子)。
问题1:如何隐藏谱号末尾的谱号和键签名 行呢? \ score中的命令不符合我的想法 在文档上。
问题2:如何将文本标记与行的开头对齐?我想要 “第1号”等与工作人员一开始就保持一致。
额外查询:有没有人知道为什么使用\ partial打破了 测量前面部分度量?对此有一般性的解决方法吗? (没有使用[]对正确的光束进行硬编码。)
感激不尽的任何帮助!
=========================
\version "2.16.2"
notes = {
\bar""\mark\markup\normalsize{No. 1}
\clef bass
\time 6/8
\key g \major
\partial 8 \once \stemUp d=8 |
g( d e) e( c d) |
\partial 8*5 d g d b g
\bar""
\break
\mark\markup\normalsize{No. 2}
\clef bass
\time 3/8
\key d \minor
\partial 8 a=8 |
d,4 bes'8 |
\partial 4 cis,4
\bar""
\break
\mark\markup\normalsize{No. 3}
\clef bass
\time 3/8
\key c \major
\partial 8 g=8 |
c8 c,16( d e f) |
\partial 4 g8( a)
\bar""
\break
\mark\markup\normalsize{No. 4}
\clef bass
\time 12/8
\key es \major
\partial 8 es8 |
es( d es) bes( c d) es( d es) g( f g) |
\break
\mark\markup\normalsize{No. 5}
\clef bass
\time 3/8
%\key c \minor
\partial 8 g=8 |
es8. f16 d8 |
\partial 16*3 es8.
\bar""
\break
\mark\markup\normalsize{No. 6}
\clef alto
\time 6/8
\key d \major
\partial 8 a='8 |
<< { d,4. e8 fis g |\noBreak
fis d a' \stemDown a16( g fis g) a8 \stemUp |\noBreak
d, a d e fis g |\noBreak } \\
{ fis,4. a8 s s |
d, s8*5 |
fis8 s s a s s | } \\
{ s2. |
a8 s8*5 |
s2. | } >>
fis'8 d a d,4
}
\score {
\relative c <<
\new Staff \notes
\override Score.TextScript #'font-family = #'sans
\override Score.RehearsalMark #'font-family = #'sans
\override Staff.Clef #'break-visibility = #begin-of-line-visible
\override Staff.Clef #'explicitClefVisibility = #begin-of-line-visible
\override Staff.TimeSignature #'break-visibility = #begin-of-line-
visible
\override Staff.KeySignature #'break-visibility = #begin-of-line-visible
\override Staff.KeySignature #'explicitKeySignatureVisibility = #begin-
of-line-visible
\override Staff.KeyCancellation #'break-visibility = #all-invisible
\override Staff.KeyCancellation #'explicitKeySignatureVisibility = #all-
invisible
>>
\layout {
}
}
\paper {
paper-height = 250\pt%7in=504pt max.
line-width = 432\pt
paper-width = 432\pt
left-margin = 0\pt
top-margin = 0\pt
bottom-margin = 0\pt
indent = 0
head-separation = 0\pt
page-top-space = 0\pt
after-title-space = 0\pt
before-title-space = 0\pt
between-system-padding = 0\pt
between-system-space = 0\pt
between-title-space = 0\pt
foot-separation = 0\pt
ragged-bottom = ##f
ragged-right = ##t
}
\book {
#(set-global-staff-size 13)
}
\header {
tagline = ""%removed
title = ""
}
答案 0 :(得分:2)
以下是您的两个问题的解决方案:
1)我编写了上面的代码,并且已经隐藏了警示谱号。时间签名问题将通过\set Staff.explicitKeySignatureVisibility = #begin-of-line-visible
解决。
2)要解决此问题,您可以将\mark\markup
文本与谱号对齐,然后将其移动水平量。
只需将\score
替换为此内容:
\score {
\relative c <<
\new Staff \notes
\override Score.RehearsalMark.break-align-symbols = #'(clef) %this will put the \mark\markup texts above the clefs
\override Score.Clef.break-align-anchor-alignment = #0.3 % %this controls its horizontal displacement. In my test, 0.3 was the ideal value to have the No. x exactly at the beginning of each system
\override Score.TextScript #'font-family = #'sans
\override Score.RehearsalMark #'font-family = #'sans
\override Staff.Clef #'break-visibility = #begin-of-line-visible
\override Staff.Clef #'explicitClefVisibility = #begin-of-line-visible
\override Staff.TimeSignature #'break-visibility = #begin-of-line-visible
\set Staff.explicitKeySignatureVisibility = #begin-of-line-visible % this will do the job with the time signatures
\override Staff.KeyCancellation #'break-visibility = #all-invisible
\override Staff.KeyCancellation #'explicitKeySignatureVisibility = #all-invisible
>>
\layout {
}
}
关于你的额外问题:我在LilyPond(v2.12)的旧文档中找到以下引文:
\ partial命令只能在a的开头使用 片。如果您在开始后使用它,可能会出现一些奇怪的警告。
也许这就是你遇到光束问题的原因。我会建议一些解决方法,比如使用不可见的休止符(输入为sn
,其中n是持续时间)。发射问题的另一种可能性是手动控制发射。这很烦人,但它完成了工作:) Ex:取代你的第1号的音乐内容,这是:
\partial 8 \once \stemUp d=8 |
g( d e) e([ c d)] |
\partial 8*5 d g d b g
有:
\partial 8 \once \stemUp d=8 |
g( d e) e([ c d)] |
\partial 8*5 d[ g d] b[ g]
我希望这会有所帮助。
答案 1 :(得分:2)
所以这里的问题是你有一个单独的乐器工作人员被分解为6件,这会导致各种各样的问题,包括谱号,拾音条,键签名。虽然我上面发布的解决方法效果很好(除了谱号),但最理想的是必须将你的六个例子中的每一个都作为一个小分数考虑。然后你可以让LilyPond打印一个在彼此之下。这是一个最小的例子:
A = {c'4 d' e' f'}
B = {\clef bass c2 g c1}
C = {e'4 d' cis' fis' | e' d' cis' }
\score {\new Staff \A}
\score {\new Staff \B}
\markup {This text will be added between the scores...}
\score {\new Staff \C}
结果是:
注意C的最后一个条只有3个四分音符因此保持打开状态,没有任何\bar ""
命令。此外,谱号,钥匙签名和拾取栏的所有问题现在都消失了。
这是你的代码重做了。我认为现在它运作良好:
\version "2.16.2"
A = {
\bar""\mark\markup\normalsize{No. 1}
\clef bass
\time 6/8
\key g \major
\partial 8 \once \stemUp d=8 |
g( d e) e( c d) |
d g d b g
}
B = {
\mark\markup\normalsize{No. 2}
\clef bass
\time 3/8
\key d \minor
\partial 8 a'8 |
d,4 bes'8 |
cis,4
}
C = {
\mark\markup\normalsize{No. 3}
\clef bass
\time 3/8
\key c \major
\partial 8 g'8 |
c8 c,16( d e f) |
g8( a)
}
D = {
\mark\markup\normalsize{No. 4}
\clef bass
\time 12/8
\key es \major
\partial 8 es8 |
es( d es) bes( c d) es( d es) g( f g) |
}
E = {
\mark\markup\normalsize{No. 5}
\clef bass
\time 3/8
%\key c \minor
\partial 8 g'8 |
es8. f16 d8 |
es8.
}
F = {
\mark\markup\normalsize{No. 6}
\clef alto
\time 6/8
\key d \major
\partial 8 a''8 |
<< { d,4. e8 fis g |\noBreak
fis d a' \stemDown a16( g fis g) a8 \stemUp |\noBreak
d, a d e fis g |\noBreak } \\
{ fis,4. a8 s s |
d, s8*5 |
fis8 s s a s s | } \\
{ s2. |
a8 s8*5 |
s2. | } >>
fis'8 d a d,4
}
\score {
\relative c <<
\new Staff \A
\override Score.RehearsalMark.break-align-symbols = #'(clef) %this will put the \mark\markup texts above the clefs
\override Score.Clef.break-align-anchor-alignment = #0.3 % %this controls its horizontal displacement. In my test, 0.3 was the ideal value to have the No. x exactly at the beginning of each system
\override Score.TextScript #'font-family = #'sans
\override Score.RehearsalMark #'font-family = #'sans
>>
\layout { }
}
\score {
\relative c <<
\new Staff \B
\override Score.RehearsalMark.break-align-symbols = #'(clef) %this will put the \mark\markup texts above the clefs
\override Score.Clef.break-align-anchor-alignment = #0.3 % %this controls its horizontal displacement. In my test, 0.3 was the ideal value to have the No. x exactly at the beginning of each system
\override Score.TextScript #'font-family = #'sans
\override Score.RehearsalMark #'font-family = #'sans
>>
\layout { }
}
\score {
\relative c <<
\new Staff \C
\override Score.RehearsalMark.break-align-symbols = #'(clef) %this will put the \mark\markup texts above the clefs
\override Score.Clef.break-align-anchor-alignment = #0.3 % %this controls its horizontal displacement. In my test, 0.3 was the ideal value to have the No. x exactly at the beginning of each system
\override Score.TextScript #'font-family = #'sans
\override Score.RehearsalMark #'font-family = #'sans
>>
\layout { }
}
\score {
\relative c <<
\new Staff \D
\override Score.RehearsalMark.break-align-symbols = #'(clef) %this will put the \mark\markup texts above the clefs
\override Score.Clef.break-align-anchor-alignment = #0.3 % %this controls its horizontal displacement. In my test, 0.3 was the ideal value to have the No. x exactly at the beginning of each system
\override Score.TextScript #'font-family = #'sans
\override Score.RehearsalMark #'font-family = #'sans
>>
\layout { }
}
\score {
\relative c <<
\new Staff \E
\override Score.RehearsalMark.break-align-symbols = #'(clef) %this will put the \mark\markup texts above the clefs
\override Score.Clef.break-align-anchor-alignment = #0.3 % %this controls its horizontal displacement. In my test, 0.3 was the ideal value to have the No. x exactly at the beginning of each system
\override Score.TextScript #'font-family = #'sans
\override Score.RehearsalMark #'font-family = #'sans
>>
\layout { }
}
\score {
\relative c <<
\new Staff \F
\override Score.RehearsalMark.break-align-symbols = #'(clef) %this will put the \mark\markup texts above the clefs
\override Score.Clef.break-align-anchor-alignment = #0.3 % %this controls its horizontal displacement. In my test, 0.3 was the ideal value to have the No. x exactly at the beginning of each system
\override Score.TextScript #'font-family = #'sans
\override Score.RehearsalMark #'font-family = #'sans
>>
\layout { }
}
\paper {
paper-height = 250\pt%7in=504pt max.
line-width = 432\pt
paper-width = 432\pt
left-margin = 0\pt
top-margin = 0\pt
bottom-margin = 0\pt
indent = 0
head-separation = 0\pt
page-top-space = 0\pt
after-title-space = 0\pt
before-title-space = 0\pt
between-system-padding = 0\pt
between-system-space = 0\pt
between-title-space = 0\pt
foot-separation = 0\pt
ragged-bottom = ##f
ragged-right = ##t
}
\book {
#(set-global-staff-size 13)
}
\header {
tagline = ""%removed
title = ""
}
产: