Skip to content

Commit 8b81487

Browse files
committed
2025-09-08 01:39
1 parent bced528 commit 8b81487

File tree

4 files changed

+39
-34
lines changed

4 files changed

+39
-34
lines changed

notes/man/lily/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.pdf
2+
*.png
3+
*.svg
File renamed without changes.

notes/man/lily/roman-numerals.ly

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
% https://lists.gnu.org/archive/html/lilypond-user/2023-03/msg00001.html
2+
3+
\version "2.24.0"
4+
5+
#(define (romanNumeralChordEngraver cx)
6+
(let ((tonic #{ c #}))
7+
(make-engraver
8+
((initialize engraver)
9+
(ly:context-set-property! cx 'chordRootNamer
10+
(lambda
11+
(pitch capitalized)
12+
(let
13+
((degree (1+ (ly:pitch-notename (ly:pitch-diff pitch tonic))))
14+
(style (if capitalized 'roman-lower 'roman-upper)))
15+
(number-format style degree)))))
16+
(listeners
17+
((key-change-event engraver event)
18+
(set! tonic (ly:event-property event 'tonic)))))))
19+
20+
\layout {
21+
\context {
22+
\ChordNames
23+
\consists #romanNumeralChordEngraver
24+
}
25+
}
26+
27+
\score {
28+
<<
29+
\new ChordNames {
30+
\set chordNameLowercaseMinor = ##t
31+
\set chordChanges = ##t \chordmode {
32+
c1 d:m e:m f g:7 a:m b:7
33+
}
34+
}
35+
>>
36+
}

notes/man/roman-numerals.ly

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)