Skip to content

Commit 5736e42

Browse files
committed
fix: Rehearsal marks and dynamic text
1 parent 31f6f08 commit 5736e42

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

elements.ily

+15
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@ noSignature = {
5858
%! after an ellipsis.
5959
forceBarNumber = \once \override Score.BarNumber.break-visibility = #end-of-line-invisible
6060

61+
%! Function: pDolce
62+
%! --- Prototype
63+
%! \pDolce
64+
%! ---
65+
%! Dynamic command for piano dolce.
66+
%!
67+
%! Example:
68+
%! --- LilyPond
69+
%! c d e\pDolce f
70+
%! ---
71+
pDolce = #(make-dynamic-script
72+
(markup #:hspace 5
73+
#:dynamic "p"
74+
#:normal-text #:italic "dolce"))
75+
6176
%! Function: pizz
6277
%! --- Prototype
6378
%! \pizz

pdq.ily

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ opt-default-tagline = #(get-option 'defaultTagline #f)
129129
#(define (format-mark-pdq mark context)
130130
(markup
131131
(#:box (#:pad-to-box '(-2 . 2) '(-2 . 2) (#:hcenter-in 4 (#:vcenter
132-
(#:bold (#:fontsize 3 (make-markalphabet-markup (1- mark))))))))))
132+
(#:bold (#:fontsize 3 (make-markalphabet-markup mark)))))))))
133133

134134
%! Function: format-mark-pdq-numeric
135135
%! Formats rehearsal marks with numbers instead of letters. The formatter puts every
136136
%! mark in a square box. The marks are printed quite large for better readability.
137137
#(define (format-mark-pdq-numeric mark context)
138138
(markup
139139
(#:box (#:pad-to-box '(-2 . 2) '(-2 . 2) (#:hcenter-in 4 (#:vcenter
140-
(#:bold (#:fontsize 3 (number->string (1- mark))))))))))
140+
(#:bold (#:fontsize 3 (number->string mark)))))))))
141141

142142
%!======================================================================================
143143
%! Section: PDQ Paper

0 commit comments

Comments
 (0)