Le 16/11/2022 à 12:21, Kieren MacMillan a écrit :
What about creating all the parts for a score? I certainly don't want to type all the common structure in each part.If you type the structure first, then as you use emacs, it's easy to copy and paste sufficient copies of it before you enter the notes.Okay… but yet another reason composing directly into Lilypond is suboptimal and potentially frustrating. =\I often typeset scores with 40 or more staves; having to make changes in that many places is time-consuming and error-prone.
Depending on what sort of thing you may want to change,
a music function could be a solution, e.g.
\version "2.23.81"
part =
#(define-music-function (main volta1 volta2) (ly:music? ly:music? ly:music?)
#{
\new Staff \repeat segno 2 {
#main
\alternative {
\volta 1 #volta1
\volta 2 \volta #'() {
\section
\sectionLabel Coda
}
}
}
#volta2
#})
<<
\part { c'1 } { d'1 } { e'1 }
\part { f'1 } { g'1 } { a'1 }
>>
Best,
Jean
OpenPGP_signature
Description: OpenPGP digital signature
