lilypond-user
[Top][All Lists]
Advanced

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

Re: Placing text next to notes


From: Thomas Morley
Subject: Re: Placing text next to notes
Date: Fri, 2 Dec 2011 00:51:01 +0100

Hi Daniel,

2011/12/1 Daniel Kraft <address@hidden>

Hi all,

I have the following problem:  I would like to engrave an arpeggio
which should be played in a "unusual" order, namely first the highest,
then the lowest and finally the middle note.

To indicate that, I'd like to place roman numerals I, II and III next
to (i.e., right of) the respective notes.  Is there an (easy) way to
do that?

(...)

Thanks a lot!  Yours,
Daniel
 
as Tim suggested I tweaked Fingering:

%%%%%%%%%%%BEGIN

\version "2.14.2"

addText = #(define-music-function (parser location string-text) (string?)
  (let ((text (markup #:fontsize -6 string-text))
        (m (make-music 'FingeringEvent 'digit 0 )))
       
       (set! (ly:music-property m 'tweaks)
        (acons 'text text
           (ly:music-property m 'tweaks)))
       m))
      
\relative c' {
        \set Voice.fingeringOrientations = #'(right)
        \override Voice.Arpeggio #'script-priority = #200
        <c-\addText #"I" e-\addText #"III" g-\addText #"II" c-\addText #"IV">\arpeggio
}

%%%%%%%%%%%END

also possible: tweaking the StrokeFinger

%%%%%%%%%%%BEGIN

\version "2.14.2"

#(define RH rightHandFinger)

I = -\RH #1
II = -\RH #2
III = -\RH #3
IV = -\RH #4
V = -\RH #5

\relative c' {
        \set Voice.strokeFingerOrientations = #'(right)
        \override StrokeFinger #'digit-names = ##("I" "II" "III" "IV" "V")
        \override StrokeFinger #'font-shape = #'upright
        \override StrokeFinger #'font-size = #-6
       
        \override Voice.Arpeggio #'script-priority = #200
        <c\I e\III g\II c\IV >\arpeggio
}

%%%%%%%%%%%END

HTH,
  Harm

reply via email to

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