lilypond-user
[Top][All Lists]
Advanced

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

Fw: jianpu (numeric notes) lilypond transcribe?


From: MING TSANG
Subject: Fw: jianpu (numeric notes) lilypond transcribe?
Date: Mon, 19 Nov 2012 17:39:00 -0800 (PST)

Hi, Lily users:

I forgot to include namer.ly.

Here is the lily code:

numbr = #(make-engraver (acknowledgers
((note-head-interface engraver grob source)
(let* (
(context (ly:translator-context engraver))
(tonic-pitch (ly:context-property context 'tonic))
(tonic-index (ly:pitch-notename tonic-pitch))
(event (ly:grob-property grob 'cause))
(grob-pitch (ly:event-property event 'pitch))
(grob-index (ly:pitch-notename grob-pitch))
(delta (modulo (- grob-index tonic-index) 7))
(name (list-ref '("1" "2" "3" "4" "5" "6" "7") delta))
(newgrob (ly:engraver-make-grob engraver 'TextScript event)))
(if (string= name "Hb") (set! name "B"))
(set! (ly:grob-property newgrob 'text) name)
(set! (ly:grob-property newgrob 'direction) UP) ))))
 
Blessing in+,
Ming.
----- Forwarded Message -----
From: MING TSANG <address@hidden>
To: lilypond-usermailinglist <address@hidden>
Sent: Saturday, November 17, 2012 4:48:37 PM
Subject: jianpu (numeric notes) lilypond transcribe?

Hi, lilypond users:

Is is possible for lilypond code to produce the jianpu (numeric notes) shown on the .png file.   There is a namer.ly which will produce the jianpu, but the numeric notes are not associated with quarter-note, half-note, eight-note and differential octave. 

Appreciate, if anyone had done this to share.
 
Blessing in+,
ming.


Attachment: 2012-11-17_163945.png
Description: PNG image


reply via email to

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