Hi, I am a new user of Lilypond.
Since on the topic of finger: As Frescobaldi has a tool of Quick remove fingering, is there is a way a snippet to automatically add fingering of numeric tonic name).
\version "2.19.52"
\language english
#(define Ez_numbers_engraver
(make-engraver
(acknowledgers
((note-head-interface engraver grob source-engraver)
(let* ((context (ly:translator-context engraver))
(tonic-pitch (ly:context-property context 'tonic))
(tonic-name (ly:pitch-notename tonic-pitch))
(grob-pitch
(ly:event-property (event-cause grob) 'pitch))
(grob-name (ly:pitch-notename grob-pitch))
(delta (modulo (- grob-name tonic-name) 7))
(note-names
(make-vector 7 (number->string (1+ delta)))))
(ly:grob-set-property! grob 'note-names note-names))))))
#(set-global-staff-size 30)
\layout {
ragged-right = ##t
\context {
\Voice
\consists \Ez_numbers_engraver
}
}
\relative c' {
\key g \major
\easyHeadsOn
d4 e fs g
\easyHeadsOff
d4-5 e-6 fs-7 g-1
\break
}