lilypond-user
[Top][All Lists]
Advanced

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

Re: repeated music


From: Frank Steinmetzger
Subject: Re: repeated music
Date: Tue, 24 Nov 2009 02:10:15 +0100
User-agent: KMail/1.9.10

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.


reply via email to

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