lilypond-user
[Top][All Lists]
Advanced

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

Re: string numbers (fingering instructions) as roman numerals?


From: David Nalesnik
Subject: Re: string numbers (fingering instructions) as roman numerals?
Date: Mon, 30 Jun 2014 15:25:07 -0500

Hello,


On Mon, Jun 30, 2014 at 2:32 PM, philip <address@hidden> wrote:
Hi,
I was wondering if anyone knows how to override the
default numbering format for string numbers
(default is circled arabic numbers) and use roman
numerals instead.


Try this:

 \version "2.19.8"

#(define (string-number::calc-roman-text grob)

  (let ((event (event-cause grob)))

    (or (ly:event-property event 'text #f)

         (format #f "address@hidden" (ly:event-property event 'string-number)))))


{

  \override StringNumber.text = #string-number::calc-roman-text

  \clef "treble_8"

  c4\5 e\4 g2\3

  <c,\5 e\4 g\3>1

}


%%%


HTH,

David



reply via email to

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