Back to Silas S. Brown's home page

Jianpu in Lilypond

jianpu-ly is a Python program to assist with printing jianpu (numbered musical notation) in the GNU Lilypond music typesetter. The jianpu is written on a modified-appearance "stave" in Lilypond, which means Lilypond's typesetting capabilities (lyric spacing, slurs, beams etc) will apply to the jianpu without needing to add a 5-line stave. If you prefer, the generated code for the jianpu stave may also be placed in a score with other types of stave.
For Chinese users, someone has written a Chinese summary of jianpu-ly which looks right. (I would put their name here if I could find it.)

Run jianpu-ly < text-file > ly-file
The text file is whitespace-separated and can contain:

Scale going up1 2 3 4 5 6 7 1'
Accidentals1 #1 2 b2 1
Octaves1,, 1, 1 1' 1''
Shortcuts for 1' and 2'8 9
Semiquaver, quaver, crotchet (16/8/4th notes)s1 q1 1
Dotted versions of the above (50% longer)s1. q1. 1.
Demisemiquaver, hemidemisemiquaver (32/64th notes)d1 h1
Minims (half notes) use dashes1 -
Dotted minim1 - -
Semibreve (whole note)1 - - -
Time signature4/4
Time signature with quaver anacrusis (8th-note pickup)4/4,8
Key signature (major)1=Bb
Key signature (minor)6=F#
LyricsL: here are the syl- la- bles (all on one line)
Lyrics (verse 1)L: 1. Here is verse one
Lyrics (verse 2)L: 2. Here is verse two
Hanzi lyrics (auto space)H: hanzi (with or without spaces)
Lilypond headerstitle=the title (on a line of its own)
Multiple movementsNextScore
Prohibit page breaks until end of this movementOnePage
Tuplets3[ q1 q1 q1 ]
Da capo1 1 Fine 1 1 1 1 1 1 DC
Repeat (with alternate endings)R{ 1 1 1 } A{ 2 | 3 }
Ties (like Lilypond's, if you don't want dashes)1 ~ 1
Slurs (like Lilypond's)1 ( 2 )
Dynamics (applies to previous note)\p \mp \f
Other 1-word Lilypond \ commands\fermata \> \! \( \) etc
Other Lilypond codeLP: (block of code) :LP (each delimeter at start of its line)
Lilypond warnings like "stem does not fit in beam" can be ignored, but if it says "no feasible beam position" then try a newer Lilypond version (2.15.40-1 should work).
All material © Silas S. Brown unless otherwise stated.