Re: Trying and failing to engrave a segno repeat with coda: More alternatives than repeats.
Le jeudi 08 juin 2023 à 22:56 -0700, Kenneth Wolcott a écrit : > Hi; > > Trying and failing to engrave a segno repeat with coda: > > warning: More alternatives than repeats. Junking excess alternatives > > Attachments: > > I have screenshots for the following from the original pdf I am > transcribing from: > (i) sego; > (ii_ the "to coda"; > (iii) combined "ds al coda" and "Coda" [combined] > > (iv) the resulting pdf; > > (v) I have the output from Lilypond; > > (vi) My Lilypond source; > > Again, must be missing something trivial and obvious :-( You have things like this: rh = { \global \clef treble \rh_i \repeat segno 2 { \rh_ii } \alternative { \volta 1 { \rh_iii } \volta 2 \volta #'() { \section \sectionLabel "Coda" } \rh_iv } \fine } Each element of the \alternative block is an alternative. Therefore, you have three alternatives: \volta 1 { ... }, \volta 2 { ... }, and \rh_iv. For a \repeat segno **2**, that is illogical. Instead, you should put \rh_iv outside of the \alternative block. Best, Jean signature.asc Description: This is a digitally signed message part
Re: Trying and failing to engrave a segno repeat with coda: More alternatives than repeats.
Hello Ken, please try to give a MWE and to describe what you actually want to achieve. It is hard to get what you want from just a handful of screenshots of jump marks. I suppose this is supposed to be something like A [SEGNO] B [Fine→Coda] C [Dal segno al Fine e poi la coda] [Coda] D So essentially A → B → C → B → D What you are doing is something like { c'1 c' \repeat segno 2 { d' d' } \alternative { \volta 1 { } \volta 2 { e' e' } { f' f' } } } instead you should be doing something like this { c'1 c' \repeat segno 2 { d' d' } \alternative { { e' e' } { f' f' } } } Or as given in the documentation { c'1 c' \repeat segno 2 { d' d' } \alternative { { e' e' } { \section \sectionLabel "Coda" } } f' f' } Now, Lilypond will then produce marks that are more inspired by classical use of codas, while this is more a pop-style use of coda marks (where you will find interesting instructions like this "D.S. al coda" (lit. from the sign to the Coda, so start playing repeat from the segno and stop once you reach the Coda). Now, if you want you can simply tell Lilypond to do this thing by simple styling directives: { c'1 c' \repeat segno 2 { d' d' } \alternative { { e' e' } { f' f' } } } \layout { \context { \Score dalSegnoTextFormatter = #(lambda (context return-count marks) (let* ((start-markup (car marks)) (end-markup (cadr marks)) (next-markup (caddr marks)) (result (if start-markup "D.S." "D.C."))) (if next-markup (markup result "al Coda") (if end-markup (markup result "al" end-markup) result \override CodaMark.self-alignment-X = ##f \override CodaMark.font-size = #0 codaMarkFormatter = #(lambda (count context) (let* ((coda-markup (format-coda-mark (ceiling (/ count 2)) context))) (if (= (remainder count 2) 1) (markup #:put-adjacent X LEFT #:center-align coda-markup #:fontsize -1 "To Coda ") (markup #:put-adjacent X RIGHT #:center-align coda-markup #:fontsize -1 " Coda" } } Cheers, Valentin signature.asc Description: This is a digitally signed message part.
help me to install app
Hello everyone, I have downloaded for my windows. I really don't know where to find the file to install please help me.
Re: help me to install app
> Le 9 juin 2023 à 17:52, a...@daomauht.com a écrit : > > > Hello everyone, I have downloaded for my windows. I really don't know where > to find the file to install please help me. > Welcome. Have you seen the tutorial? https://lilypond.org/doc/v2.24/Documentation/learning/installing
Re: Trying and failing to engrave a segno repeat with coda: More alternatives than repeats.
HI Jean; Thank you so much. It works now. On Fri, Jun 9, 2023 at 12:51 AM Jean Abou Samra wrote: > > Le jeudi 08 juin 2023 à 22:56 -0700, Kenneth Wolcott a écrit : > > Hi; > > > > Trying and failing to engrave a segno repeat with coda: > > > > warning: More alternatives than repeats. Junking excess alternatives > > > > Attachments: > > > > I have screenshots for the following from the original pdf I am > > transcribing from: > > (i) sego; > > (ii_ the "to coda"; > > (iii) combined "ds al coda" and "Coda" [combined] > > > > (iv) the resulting pdf; > > > > (v) I have the output from Lilypond; > > > > (vi) My Lilypond source; > > > > Again, must be missing something trivial and obvious :-( > > > You have things like this: > > rh = { > \global > \clef treble > \rh_i > \repeat segno 2 { > \rh_ii > } > \alternative { > \volta 1 { > \rh_iii > } > \volta 2 \volta #'() { > \section > \sectionLabel "Coda" > } > \rh_iv > } \fine > } > > Each element of the \alternative block is an alternative. Therefore, you > have three alternatives: \volta 1 { ... }, \volta 2 { ... }, and \rh_iv. > For a \repeat segno **2**, that is illogical. > > Instead, you should put \rh_iv outside of the \alternative block. > > Best, > Jean
Re: Trying and failing to engrave a segno repeat with coda: More alternatives than repeats.
Hi Valentin; Wow, that's a lot to digest; thanks, I'll try to work through that. Ken On Fri, Jun 9, 2023 at 2:02 AM Valentin Petzel wrote: > > Hello Ken, > > please try to give a MWE and to describe what you actually want to achieve. It > is hard to get what you want from just a handful of screenshots of jump marks. > > I suppose this is supposed to be something like > > A [SEGNO] B [Fine→Coda] C [Dal segno al Fine e poi la coda] [Coda] D > > So essentially A → B → C → B → D > > What you are doing is something like > > { > c'1 c' > \repeat segno 2 { > d' d' > } > \alternative { > \volta 1 { } > \volta 2 { e' e' } > { f' f' } > } > } > > instead you should be doing something like this > > { > c'1 c' > \repeat segno 2 { > d' d' > } > \alternative { > { e' e' } > { f' f' } > } > } > > Or as given in the documentation > > { > c'1 c' > \repeat segno 2 { > d' d' > } > \alternative { > { e' e' } > { \section \sectionLabel "Coda" } > } > f' f' > } > > Now, Lilypond will then produce marks that are more inspired by classical use > of codas, while this is more a pop-style use of coda marks (where you will > find > interesting instructions like this "D.S. al coda" (lit. from the sign to the > Coda, so start playing repeat from the segno and stop once you reach the > Coda). > > Now, if you want you can simply tell Lilypond to do this thing by simple > styling directives: > > { > c'1 c' > \repeat segno 2 { > d' d' > } > \alternative { > { e' e' } > { f' f' } > } > } > > \layout { > \context { > \Score > dalSegnoTextFormatter = > #(lambda (context return-count marks) >(let* ((start-markup (car marks)) > (end-markup (cadr marks)) > (next-markup (caddr marks)) > (result (if start-markup "D.S." "D.C."))) > (if next-markup > (markup result "al Coda") > (if end-markup > (markup result "al" end-markup) > result > \override CodaMark.self-alignment-X = ##f > \override CodaMark.font-size = #0 > codaMarkFormatter = > #(lambda (count context) >(let* ((coda-markup (format-coda-mark (ceiling (/ count 2)) context))) > (if (= (remainder count 2) 1) > (markup #:put-adjacent X LEFT #:center-align coda-markup > #:fontsize -1 "To Coda ") > (markup #:put-adjacent X RIGHT #:center-align coda-markup > #:fontsize -1 " Coda" > } > } > > Cheers, > Valentin