-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcpdlStyle.ily
More file actions
150 lines (134 loc) · 4.3 KB
/
Copy pathcpdlStyle.ily
File metadata and controls
150 lines (134 loc) · 4.3 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
\version "2.19.81"
%revised March 15,2018
%{ sample header
taglineLink = "https://imslp.org/wiki/Special:ReverseLookup/74128"
\include "../../../cpdlStyle.ily"
\header {
title = "Plain Title"
fancyTitle = \markup { \fontsize #+5 \override #'(font-name . "Oldstyle Small Caps") "Formatted Title"}
composer = ""
composerLast = ""
composerDates = "(–)"
poet = ""
poetDates = "(–)"
opus = ""
copyright = "2018"
taglineA = \markup { \concat {"Source: " \italic "Ludwig van Beethovens Werke" ", Serie 23: Lieder und Gesänge mit Begleitung des Pianoforte, No.273." } }
taglineB = "Leipzig: Breitkopf & Härtel, 1862-1890. Plate B.273."
}
%}
#(set-global-staff-size 17)
\paper {
#(set-paper-size "letter")
%{#(define fonts
(set-global-fonts
#:music "mtf-cadence"
#:brace "mtf-cadence"
#:roman "Borgia Pro"
#:factor (/ staff-height pt 20)
))%}
%set spacing to allow for head/footers
top-system-spacing.minimum-distance = 12
last-bottom-spacing.minimum-distance = 14
top-margin = .3\in
bottom-margin = .3\in
left-margin = .5\in
right-margin = .5\in
bookTitleMarkup = \markup {
\override #'(baseline-skip . 8)
\column {
\fill-line { \fromproperty #'header:dedication }
\override #'(baseline-skip . 3.5)
\column {
\fill-line {
\huge \larger \larger \bold
\first-visible {
\fromproperty #'header:fancyTitle
\fromproperty #'header:title
}
}
\fill-line {
\large \bold
\fromproperty #'header:subtitle
}
\fill-line {
\smaller \bold
\fromproperty #'header:subsubtitle
}
}
\override #'(baseline-skip . 2.5)
\column {
\fill-line {
{\bold \fromproperty #'header:poet }
{ \large \bold \fromproperty #'header:instrument }
{\bold \fromproperty #'header:composer }
}
\fill-line {
\fromproperty #'header:poetDates
\fromproperty #'header:composerDates
}
\fill-line {
\fromproperty #'header:meter
\fromproperty #'header:arranger
}
}
}
}
oddHeaderMarkup = \markup {
\on-the-fly \print-page-number-check-first
\override #'(baseline-skip . 1)
\column {
\fill-line {
\line {\null}
\line { \fromproperty #'header:composerLast " - " \fromproperty #'header:title }
\line {\fromproperty #'page:page-number-string }
}
\draw-hline
}
}
evenHeaderMarkup = \markup {
\on-the-fly \print-page-number-check-first
\override #'(baseline-skip . 1)
\column {
\fill-line {
\line {\fromproperty #'page:page-number-string }
\line { \fromproperty #'header:composerLast " - " \fromproperty #'header:title }
\line {\null}
}
\draw-hline
}
}
oddFooterMarkup = \markup {
\override #'(baseline-skip . 2)
\column {
\fill-line {
%% Copyright header field only on first page in each bookpart.
\on-the-fly #part-first-page
\override #'(baseline-skip . 2.5)
\center-column {
\draw-hline
\tiny \fill-line {
\concat {"Copyright © " \fromproperty #'header:copyright " by CPDL. This edition can be fully distributed, duplicated, performed, and recorded."}
{ \with-url #"http://jonarnoldmusic.com/editions/" { #(string-append "Engraved by Jon Arnold using Lilypond v. " (lilypond-version) ".")} }
}
}
}
\fill-line {
%% Tagline header field only on last page in the book.
\on-the-fly #last-page
\center-column {
%\override #'(span-factor . 4/5)
\draw-hline
%declare taglineLink before including this stylesheet in the file
%example taglineLink = "http://lilypond.org"
\with-url #taglineLink {
\tiny { \fromproperty #'header:taglineA \fromproperty #'header:taglineB }
}
}
}
}
}
%% As long as evenFooterMarkup is unset, it inherits the value of
%% oddFooterMarkup, as if this were declared here:
% evenFooterMarkup = \oddFooterMarkup
}