lilypond-user
[Top][All Lists]
Advanced

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

Re: {g,, g'' g g}


From: Simon Albrecht
Subject: Re: {g,, g'' g g}
Date: Fri, 12 Jun 2015 17:00:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Am 12.06.2015 um 16:27 schrieb David Kastrup:
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.
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



reply via email to

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