lilypond-user
[Top][All Lists]
Advanced

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

Re: 2.23.81 new D.S. code


From: Jean Abou Samra
Subject: Re: 2.23.81 new D.S. code
Date: Wed, 16 Nov 2022 13:40:44 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1

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

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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