lilypond-user
[Top][All Lists]
Advanced

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

Jianpu music notation question


From: Menu Jacques
Subject: Jianpu music notation question
Date: Sun, 20 Aug 2017 23:51:47 +0200

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



reply via email to

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