lilypond-user
[Top][All Lists]
Advanced

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

Alternative subtleties


From: Menu Jacques
Subject: Alternative subtleties
Date: Mon, 28 Nov 2016 08:44:24 +0100

Hello folks,

I’ve always used \alternative with a list of bracketed elements, and just found 
that example in the Notation Reference:

\version "2.19.44"

forget = #(define-music-function (music) (ly:music?) #{
  \accidentalStyle forget
  #music
  \accidentalStyle modern
            #})

{
  \accidentalStyle modern
  \time 2/4
  \repeat volta 2 {
    c'2
  }
  \alternative {
    cis'
    \forget c'
  }
}

% to be compared with this:
{
  \accidentalStyle modern
  \time 2/4
  \repeat volta 2 {
    c'2
  }
  \alternative {
    {
      cis'
      \forget c'
    }
  }
}

I’m afraid I didn’t read the doc well enough…

JM




reply via email to

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