On Thu, Dec 25, 2014 at 10:49 AM, Kieren MacMillan <
[email protected]> wrote:
> Hi,
>
> > This will prevent it showing up in the output, but it'll still show up
> in the midi, won't it?
>
> Hmmm… I think it probably will. So maybe use tags instead? e.g. (warning:
> UNTESTED CODE!):
>
> barsSixToEight = {
> << \new Voice { \voiceOne
> d'8 cs d fs4->-\tag #’first-time-only \arpeggio e8
> |
> d8 cs b cs4-> b8 |
> } \new Voice { \voiceTwo
> fs8 g fs e4.-\tag #’first-time-only \arpeggio
> |
> fs4. gs |
> }
> >> |
> a8 a gs g fs e |
> }
>
> upperStaff = \relative c' {
> a4 a a
> \barsSixToEight
>
> b4 b b
> % Somehow suppress \arpeggio here:
> \removeWithTag #’(first-time-only) \barsSixToEight
> }
>
Yes, that should work.
I can't test it with the example the OP has given, since it doesn't
compile. Here's a short example I used to test the approach:
music = {
<c e g c'>1 -\tag #'f \arpeggio
}
\score {
\new Staff {
\removeWithTag #'f \music
\music
}
}
--David
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user