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
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user