Hello folks,

As someone mentioned on this list some time ago, Silas S. Brown has written 
jianpu-ly, described at 
http://people.ds.cam.ac.uk/ssb22/mwrhome/jianpu-ly.html, that produces LilyPond 
code from a custom text description of the score.

This leads to code such as:

#(define (note-one grob grob-origin context)
  (if (grob::has-interface grob 'note-head-interface)
    (begin
      (ly:grob-set-property! grob 'stencil
        (grob-interpret-markup grob
          (make-lower-markup 0.5 (make-bold-markup "1")))))))

\applyOutput #'Voice #note-one
c''4[^. ~ 
 
with one specific function (note-one here) per note in the scale.

The PDF output produced by LilyPond then looks like:




Would a note engraver producing numbers instead of glyphs be a way worth going 
for obtaining the same while keeping the regular syntax, i.e. without any 
function such as 'note-one’ above being needed?

A by-product of this approach might be the generation of ABC music notation, 
see http://abcnotation.com, with LilyPond btw.

Thanks if you can help!

JM


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

Reply via email to