> Hello,
> The documentation (or the faq) claims somewhere, that one can't put direct
> typesetting instructions into the mudela file. But most often one wants to
> typeset scores, which are easy to use. Therefore the user should be able
> to control for example page breaks (to put them to a place, where it is
> easy to turn the page).
I second this wish!
> Putting a script above or below a note can be done using the ^"..." or
> _"..." notations. This will left-align the text. There are cases, where
> the text should be centered or right-aligned. For example if you want to
> write "Bourree I. da capo" under the last bar, you have to try, under
> which note you should place it, so that it doesn't extend the last
> (double) bar of the piece (or the page). If you decide to change the font
> size for this text, you have to relocate it again. It would be easier to
> position it to the last (double) bar -- right-aligned.
This too!
> There are pieces, in which a certain rhythm is repeated several times.
> For example
> [ g8 r16. g32 ][ g'8 r16. g32 ][ fis8 r16. fis32][ f8 r16. f32]
> ... and so on, for about 50 bars. It is exhausting to type so much,
> and quite error prone. It would be very useful to implement macros, like
> this:
> rhythm1(x,y) = [ x8 r16. y32 ] % if the two notes are different
> rhythm1(x) = [ x8 r16. x32 ] % ... or if they are the same
> and you could say simply
> \rhythm1(g) \rhythm1(g',g) \rhythm1(fis) ... etc
> (this is a BAD example, the comma used for the separation of arguments
> coincides with the octave changing mark. This is only a demonstration of
> an idea)
As has already been mentioned, you could use any preprocessor
for this. Actually, I think you could misuse \addlyrics to
support it also.
/Mats