I am trying to engrave a pipa piece using Lilypond 2.20 on Ubuntu 20.04. The first several notes render like this:
What do not look right:
- Clef in the lower part does not start with a bass symbol, but the bass appeared after it.
- The customized time signature symbol サ does not appear in the lower staff. Instead a big C.
- The whole first section should be cadenza (both upper and lower part), but the bar line still appear in the lower part.
Any help will be highly appreciated!
Here is my Lilypond source code:
\version "2.20.0"
\header {
title = "Yi Dance"
subtitle = "彝族舞曲"
subsubtitle = "1960"
instrument = "Pipa · 琵琶"
composer = "WANG Huiran · 王惠然"
arranger = "Pipa Fingering: YANG Wei · 楊惟"
}
\markup {
\vspace #1
}
%% fingering symbols
fngs = \finger\markup{\override #'(font-name . "pipa") \fontsize #5 "s"}
fngw = \finger\markup{\override #'(font-name . "pipa") \fontsize #5 "w"}
fngDaiLunBoxed = ^\markup{\translate #'(-2.25 . 1.25) \box{\pad-markup #0.2 \override #'(font-name . "pipa") \fontsize #2 "s w"}}
\layout {
indent = #0
\context {
\Score
\remove "Bar_number_engraver"
}
\context {
\Voice
\consists "Melody_engraver"
\override Stem #'neutral-direction = #'()
}
}
global = {
\key a \minor
\numericTimeSignature
}
upper = \relative c'' {
\clef treble
\global
% Music follows here.
%% for the symbol サ
\once\override Staff.TimeSignature.stencil = #ly:text-interface::print
\once\override Staff.TimeSignature.text = \markup{\bold \fontsize #3 "サ" }
\once\override Staff.TimeSignature.extra-offset = #'(0 . -1.5)
%% section title and tempo hint
\once \override Score.RehearsalMark.self-alignment-X = #LEFT
\tempo "[1] liberamente, lento poi accelerando【一】自由地、慢起漸快"
\cadenzaOn
\appoggiatura{d16 c} a4\fngDaiLunBoxed \appoggiatura{d16 c} a4 \appoggiatura{d16 c} a4 \appoggiatura{d16 c} a4
\cadenzaOff
\revert Score.TimeSignature.stencil
}
lower = \relative c {
\clef bass
\global
% Music follows here.
%% for the symbol サ
\once\override Staff.TimeSignature.stencil = #ly:text-interface::print
\once\override Staff.TimeSignature.text = \markup{\bold \fontsize #3 "サ" }
\once\override Staff.TimeSignature.extra-offset = #'(0 . -1.5)
\cadenzaOn
c1 c
\cadenzaOff
\revert Score.TimeSignature.stencil
}
\score {
\new PianoStaff
<<
\new Staff = "upper" \upper
\new Staff = "lower" \lower
>>
\layout { }
\midi { }
}