lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fingering context


From: ching hsu
Subject: Re: fingering context
Date: Mon, 5 Dec 2016 09:17:10 -0500

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). 
I understand this may be under keybord data-entry issue not a engraver issue?

ching

%%%%%%%%%%%%%%%%


\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
}
%%%%%%%%%%%%%%%%%%%%%%%%%

On Sun, Dec 4, 2016 at 3:26 AM, David Kastrup <address@hidden> wrote:
Gianmaria Lari <address@hidden> writes:

> Is there any way to specify the fingering in a specific context? I tried
> this without success:
>
> \version "2.19.49"
>
> \score
> {
>   <<
>     \new Staff {c' d' e' f'}
>     \new Dynamics {s4-1 s4-2 s4-3 s4-4}
>   >>
>   \layout { }
> }




--
David Kastrup

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

[Prev in Thread] Current Thread [Next in Thread]