forked from kshaffer/musicianship
-
Notifications
You must be signed in to change notification settings - Fork 16
/
KBtypesettingDemo.ly
137 lines (119 loc) · 3.31 KB
/
KBtypesettingDemo.ly
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
\version "2.14.2"
#(set-default-paper-size "letter")
#(set-global-staff-size 20)
\header {
title = ""
subtitle = ""
poet = ""
composer = ""
tagline = ""
copyright = ""
}
\paper {
indent = 0.0\in
top-margin = 0.5\in
bottom-margin = 0.25\in
page-top-space = 0\in
before-title-space = 0\in
between-title-space = 0.5\in
after-title-space = 1.05\in
line-width = 7.0\in
left-margin = 0.75\in
right-margin = 0.75\in
ragged-right = ##f
ragged-bottom = ##f
ragged-last-bottom = ##t
system-system-spacing #'minimum-distance = #20
markup-system-spacing #'minimum-distance = #10
last-bottom-spacing #'minimum-distance = #15
% page-count = #3
print-page-number = ##f
myStaffSize = #18
#(define fonts
(make-pango-font-tree "Fanwood"
"Nimbus Sans"
"Luxi Mono"
;; "Helvetica"
;; "Courier"
(/ myStaffSize 18)))
}
global = {
\override Score.PaperColumn #'keep-inside-line = ##t
\override Score.BarNumber #'padding = #2
\override VoltaBracket #'extra-offset = #'(0 . -3)
\override ChordName #'font-family = #'roman
% \override Score.LyricText #'font-series = #'bold
% \override Score.LyricText #'font-family = #'sans
\override ChordName #'font-size = #0.5
\override Staff.TimeSignature #'style = #'()
\set majorSevenSymbol = \markup { "maj7" }
\set Staff.printKeyCancellation = ##f
\override Staff.TimeSignature #'break-visibility = #end-of-line-invisible
\set Staff.explicitKeySignatureVisibility = #end-of-line-invisible
\set Staff.explicitClefVisibility = #end-of-line-invisible
% enter key signature, time signature, pickup length here
\key c \major
\time 2/2
% \partial 8
}
upper = \relative c'' {
\clef treble
<<
{
% enter melody here
c2 d c b c b c1 \bar "|."
} \\
{
% enter middle voices (alto & tenor) here
<e, g>2 <d g> <d fis> <d g> <d a'> <d g> <e g>1
}
>>
}
lower = <<
\new Voice = "bass" <<
\relative c' {
\clef bass
% enter bass line here
c2 b a g f g c,1
}
\new FiguredBass \figuremode {
\override BassFigure #'extra-offset = #'(0 . 12)
% enter figures here within <> brackets
% use + for sharp, - for flat, ! for natural
% _ will make accidental by itself (apply to 3)
% use s if bass note has no figure
s2 <6> <6/ 4 3> s <6 5> s s1
}
>>
>>
functionalBass = {
\set stanza = \markup { \normal-text "C:" }
\lyricmode {
% enter functional bass here, follwing the rules of lilypond lyrics
"T1" "D7p" "[S6]" "D(5" "S4n" "5)" "T1"
}
}
functionalBassLower = {
\set stanza = \markup { \normal-text "" }
\lyricmode {
% enter functional bass here, follwing the rules of lilypond lyrics
\skip2 \skip2 "D2/V"
}
}
\score {
\new PianoStaff \with {
\override StaffGrouper #'staff-staff-spacing #'minimum-distance = #15
}
<<
\set PianoStaff.instrumentName = " "
\set PianoStaff.shortInstrumentName = " "
\set PianoStaff.midiInstrument = "piano"
\new Staff = "Staff_pfUpper" << \global \upper >>
\new Staff = "Staff_pfLower" << \global \lower >>
\new Lyrics \lyricsto "bass" { \functionalBass }
\new Lyrics \lyricsto "bass" { \functionalBassLower }
>>
\layout {
\context { \Score \remove "Bar_number_engraver" }
}
}