lilypond-user
[Top][All Lists]
Advanced

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

Re: jianpu (numeric notes) lilypond transcribe?


From: Silas S. Brown
Subject: Re: jianpu (numeric notes) lilypond transcribe?
Date: Sat, 1 Dec 2012 17:22:12 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

I should point out that Ming Tsang's example PNG (posted on 17 Nov)
was created using my "jianpu in Lilypond" program available at
http://people.ds.cam.ac.uk/ssb22/mwrhome/jianpu-ly.html
but what he wants to ask is "is it possible to do that without
having to type the numbers in manually", i.e. can the jianpu be
automatically generated from normal Lilypond input without having
to input the numbers separately.

My program does not attempt to parse normal Lilypond input because
the syntax is a moving target between Lilypond versions and it's rather
complicated to handle everything.

Moreover, although it's nice to be able to print the jianpu line
along with a 5-line stave, in many cases you actually DON'T want
this: if you know the user of the part ONLY reads jianpu, then
the 5-line stave is just wasting paper and ink; you might as well
put jianpu only, especially if you are printing out 135 songs!
And if you are printing jianpu only, then I find it's quicker to
type in the jianpu numbers myself, instead of going to all the
trouble of coding a 5-line staff that won't actually be printed.

Also, in some music you have to make a human judgment about what to
do with the jianpu, for example if the key changes (you may or may
not get away with changing key in the jianpu; it depends on the
singer/instrument; you might have to write everything relative to
the same key, in which case you have to choose which of the music's
different keys is the "main" one) or if there are chromaticisms
(sometimes it makes sense to rewrite the enharmonics in the jianpu
line, e.g. #5 to b6; there are no fixed rules about this, it's
down to judgment and it can depend on the singer/instrument).
If any program did produce the jianpu numbers completely automatically
then I would want to be able to edit/override them at times.

Of course, if the music is simple (it's in one key with no awkward
chromaticisms) then automatic jianpu should be easier.  If I were
inputting a large number of simple tunes, and I wanted both the music
line and the jianpu line but without having to type everything twice,
I would write myself a simple search/replace script so I can automatically
generate one format from the other (or even use a third format to
generate both).  In this case the translator needs to cope only with
the specific things that I will actually use for this specific input
(it does not have to address the entire Lilypond feature set).
For example, if you are in D major and you specify duration on
every note in Lilypond, just replace d4 -> 1, d8 -> q1, e4 -> 2 etc.

In the general case though, it's going to be hard to automatically
convert normal Lilypond input into jianpu-ly's input (or reproduce
jianpu-ly's work in mainstream Lilypond) although it would be nice.

Meanwhile, at least jianpu-ly does have a few "sanity checks" in
it in case you make a mistake.  It performs barline checks like
Lilypond (and in jianpu-ly they are ERRORS, not warnings, so you
should certainly know if you did something wrong there), and it
should be possible to hear the music played back (although I should
probably implement a "play it in the right key" feature so you can
play it alongside the other stave and check all notes sound the same).

Silas

-- 
Silas S Brown http://people.ds.cam.ac.uk/ssb22



reply via email to

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