[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: repeated music
From: |
Alexander Kobel |
Subject: |
Re: repeated music |
Date: |
Tue, 24 Nov 2009 02:08:41 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
Francesco Petrogalli wrote:
Hello,
is there a simple way to make a function that generate a repetead
pattern having just a note as input?
Hi, Francesco,
you mean like this:
\include "applyRhythm-1.1.ily"
brahmsify =
#(define-music-function (parser location note) (ly:music?)
#{ <<
<<
\applyRhythm #"8 4 8" { $note \transpose c c' $note $note }
\applyRhythm #"8 4 8" { s( s s) }
>> \\
\transpose c c, \applyRhythm #"2" $note
>> #})
{
\brahmsify f'
\brahmsify g'
\brahmsify c'
}
where the included "applyRhythm-1.1.ily" is the one I sent in just my
very last mail on this list
(http://lists.gnu.org/archive/html/lilypond-user/2009-11/msg00598.html)? :-)
It's not polished yet, but that's exactly what I want to be able to do
with this snippet. Well, as you can see, I am, but I want a cleaner
syntax somehow. So far, feel free to use it this way.
Cheers,
Alexander