lilypond-user
[Top][All Lists]
Advanced

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

Re: short tunes


From: Erik Sandberg
Subject: Re: short tunes
Date: Sat, 21 Jan 2006 00:06:52 +0100
User-agent: KMail/1.8.3

On Friday 20 January 2006 20.01, debian wrote:
> Traditional tunes tend to be short.  Just a burst of eight bars,
> repeated usually and then a burst of another eight bars again
> repeated.
>
> I would like to play the tune a number of times 1,2,3 perhaps 4 times.
>
> I could go:
>
> timidity my.tune
> timidity my.tune
> timidity my.tune
>
> but is no good as there is a delay between tunes.
>
> How can I tell Lilypond to put out the tune (ie the notes) n times,
> where n is taken from the command line ?
>
> I would like to have my tunes stand alone, so I can edit them an play
> them individually.  But I would also like to "suck" the essential
> parts of these same tunes into a book for sharing or perhaps
> publications.
>
> I don't mind writing some perl code to do this, but I need to know the
> essential parts to suck in.

Well, you could store all tunes in variables, which you keep in one static 
file, and then write a perl script that generates a main .ly file, which 
includes the static file, and then generates a score by dereferencing the 
variables one or more times, depending on command-line parameters to the perl 
script. Wouldn't that be enough?

-- 
Erik




reply via email to

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