short tunes
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. Thanks a lot. Joe ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: short tunes
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
Re: short tunes
Hi. How can I tell Lilypond to put out the tune (ie the notes) n times, where n is taken from the command line ? I don't think that you can pass this kind of arguments on the command line. A few weeks ago, I wished for something similar: i.e. a tool to concatenate MIDI files. [I tried it with a Perl module, but I couldn't work it out.] 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. You don't need to program to achieve this; it's a matter of organizing your lilypond code in various files, using \include to put the common music either alone in a file, or grouping it with other tunes in a file with multiple \score sections. Best, Gilles ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user