Klaus Blum <address@hidden> 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.