forked from kshaffer/musicianship
-
Notifications
You must be signed in to change notification settings - Fork 16
/
functions.ly
125 lines (105 loc) · 2.92 KB
/
functions.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
\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 = 1.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 = ##t
ragged-bottom = ##f
ragged-last-bottom = ##t
system-system-spacing #'minimum-distance = #25
markup-system-spacing #'minimum-distance = #18
last-bottom-spacing #'minimum-distance = #15
% page-count = #3
print-page-number = ##f
}
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" }
\override Staff.StaffGrouper #'staff-staff-spacing #'minimum-distance = #40
% enter key signature, time signature, pickup length here
\key c \major
\time 7/1
% \partial 8
}
upper = \relative c' {
\clef treble
<e g c>1 <f a d> <g b e> <a c f> <b d g> <c e a> <d f b>
<e, g b>1 <f a c> <g b d> <a c e> <b d f> <c e g> <d f a>
}
lower = <<
\new Voice = "bass" <<
\relative c {
\clef bass
% enter bass line here
c1 d e f g a b \bar "||" \break
c,1 d e f g a b \bar "||" \break
}
\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
s1*7
<7>1 <7>1 <7>1 <7>1 <7>1 <7>1 <7>1
}
>>
>>
roman = {
\set stanza = \markup { \normal-text "" }
\lyricmode {
% enter functional bass here, follwing the rules of lilypond lyrics
I II III IV V VI VII
I II III IV V VI VII
}
}
functionalBass = {
\set stanza = \markup { \normal-text "" }
\lyricmode {
% enter functional bass here, follwing the rules of lilypond lyrics
"T1" "S2" "T3" "S4" "D5" "Tx6" "D7"
"T1" "S2" "*" "S4" "D5" "Tx6" "D7"
}
}
\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" { \roman }
\new Lyrics \lyricsto "bass" { \functionalBass }
>>
\layout {
\context { \Score \remove "Bar_number_engraver" }
\context { \Staff \remove "Time_signature_engraver" }
}
}