Am 12.06.2015 um 16:27 schrieb David Kastrup:
Klaus Blum <benbigno...@gmx.de> writes:
Hi Gianmaria,
you could start like this:
% ----------------------------------------------------------
\version "2.18.2"
pat =
#(define-music-function (parser location note) (ly:pitch?)
#{
\transpose c $note
% define the pattern here:
{ c,,16 c'' c c }
#})
{
\pat g
\pat a
\pat b
\pat c % etc.
}
Actually, even
\version "2.18.2"
pat =
#(define-music-function (parser location note) (ly:pitch?)
#{
% define the pattern here:
$note ,,16 $note '' $note $note
#})
{
\pat g
\pat a
\pat b
\pat c % etc.
}
will work. Probably not very flexible though.
I tried something similar: The problem is integrating this with
\relative (as Gianmaria intended, I believe). At least you’d have to
spell out the first one.
Yours, Simon
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user