On Sat, 10 Jan 2015 11:12:26 +0800
James Harkins <jamshar...@qq.com> wrote:

> % Just the notes -- no need to copy anything from "global"

In fact, this is separation of content and structure. It works for many
structure-related items but unfortunately not for repeats.

For example, in the following snippet the score looks right, but in the
midi the repeats are not unfolded. Do you have a solution for that?

\version "2.18.0"

global = {
  s1
  \repeat volta 2 { s1 } \alternative { { s1 } { s1 } }
  \bar "||" s1 \bar "|." 
}

sopranoNotes = \relative c' {
  c1 d e f g
}

sopranoVoicePart = \new Staff \with {
  instrumentName = "Soprano"
  midiInstrument = "choir aahs"
} { << \global \sopranoNotes >> }

\score {
  <<
    \sopranoVoicePart
    % ... other voices ...
  >>
  \layout { }
}

\score {
  \unfoldRepeats {
  <<
    \sopranoVoicePart
    % ... other voices ...
  >>
  }
  \midi {
    \tempo 4=100
  }
}

-- Johan

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to