Am Dienstag, 24. November 2009 schrieb Francesco Petrogalli:

> Hello,
>
> is there a simple way to make a function that generate a repetead
> pattern having just a note as input? I'm writing a Brahms' piano
> score, and the left hand is doing the same rhythm, just changing the
> notes:
>
>  %bar 1
>   <<
>     {f8( f'4 f8)} \\
>     {f,2}
>
> %bar 2
>   <<
>     {g8( g'4 g8)} \\
>     {g,2}
>
> %bar 3
>   <<
>     {c8( c'4 c8)} \\
>     {c,2}

You could try something like

basis=\relative c { <<
        { f8( f'4 f8) } \\
        { f,2 }
>> }


\basis
\transpose c d { \basis }
\transpose c e { \basis }

A more complex, yet more funcion-like approach would be to write a function 
(scheme?) that takes a note as input and prints out the apropriate notes. But 
this is the easiest way _I_ can think of.
-- 
Gruß | Greetings | Qapla'
Keyboard not connected, press F1 to continue.

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to