[Top][All Lists]

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

Re: Transcribing individual score pages from scans

From: Federico Bruni
Subject: Re: Transcribing individual score pages from scans
Date: Mon, 12 May 2014 16:53:21 +0200

Hi David

I haven't totally understood what you need, but it seems to me that what you are looking for should be achieved by the Mediawiki extension, not by LilyPond.

2014-05-09 13:21 GMT+02:00 David Cuenca <address@hidden>:
Hi Urs,

unfortunately we cannot work with files, nor variables. The only thing we can do is to join text inputs. What we are after is a way to append the source texts that generate individual pages and generate a valid lilypond input just by adding a header/footer.

Is that possible?


On Fri, May 9, 2014 at 12:31 PM, Urs Liska <address@hidden> wrote:
Am 09.05.2014 12:26, schrieb Urs Liska:

Am 09.05.2014 12:16, schrieb David Cuenca:

I'm a contributor from Wikisource, an online digital library part of the
Wikimedia Foundation, where we transcribe works in the public domain.
last year we have enabled a mediawiki extension to render scores [1],
now enables our users to transcribe pages with music like these [2] [3]

Of course that is great when a work is only one page long, but for us it
becomes problematic to stitch together all the different pages into a
single one (what we call "transclusion").
Some users are just considering each page independent, but that doesn't
allow us to generate a whole lilypond file for download. For instance
this Catalan song [4], if you click on "edit" you will see that we are
combining two pages [5] and [6], where the text resides.

What we would like is to combine these pages to generate the lilypond
I have been checking the input structure documentation [7] and I found
"\book" and "\bookpart", but I didn't see anything like "\bookpage".
Is there any command that would help us to achieve the page separation
we need?

If I'm not mistaken that should be quite easy to achieve.
You can organize LilyPond input in variables, and you can combine those
variables to larger units. That is, you don't use variables only to
store the different parts in a score, but you can also separate
different sections of it.

I'm not completely sure if that fits your use case, but you may have a
start with something like:

violinPageI = ŗelative c'' {
% some music

violinPageII = ŗelative c'' {
% some music

violinMusic = {

\score {
   \new Staff \violinMusic

With this you can as well create alternative scores for individual pages
if you like.

Does that sound plausible?


Oh, I've already a few additional remarks that I forgot.

Of course you will want to store the variables in individual files and include them.

If you have spanners reaching from one variable to another (e.g. slurs) you will have to enclose the variables in an explicitly created voice:

violinMusic = \new Voice {
% ...


lilypond-user mailing list

Etiamsi omnes, ego non

lilypond-user mailing list

reply via email to

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