[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Demo: Score and parts template
From: |
Johan Vromans |
Subject: |
Re: Demo: Score and parts template |
Date: |
Tue, 13 Jan 2015 09:52:58 +0100 |
On Sat, 10 Jan 2015 11:12:26 +0800
James Harkins <address@hidden> 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