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


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to