Re: Why warning: cannot end volta spanner?
David, Thanks for the explanation. Seems like a buglet in LP, but not worth while worrying about. At least it's not giving me any serious problems, but warnings when I don't think I'm doing anything wrong worry me :)> Best regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com - Tuesday, October 18, 2016, 2:07:26 PM, you wrote: Nalesnik> On Tue, Oct 18, 2016 at 3:41 AM, Peter Toye <lilyp...@ptoye.com> wrote: >> This is a forwarded message >> From: Peter Toye <lilyp...@ptoye.com> >> To: Simon Albrecht <simon.albre...@mail.de> >> Date: Tuesday, October 11, 2016, 4:07:21 PM >> Subject: Why warning: cannot end volta spanner? >> ===8<==Original message text=== >> Simon, >> Thanks - that certainly does the trick. Though why there should be a >> warning message there at all is still beyond me (see the title to this >> thread!). Nalesnik> The warning happens in lily/volta-engraver.cc, where there is a comment: Nalesnik> /* fixme: be more verbose */ Nalesnik> The warning is issued because the program expects to end the spanner Nalesnik> either when the repeat element is over, or when a line break is Nalesnik> encountered, as in your example. Consequently, you can set Nalesnik> voltaSpannerDuration to Mom 5/1 or Mom 13/1 in your example with no Nalesnik> warning. (With results identical to the default without the manual Nalesnik> setting, of course.) Nalesnik> I'm not sure of the point of the warning. Why else would you set Nalesnik> voltaSpannerDuration unless you want something out of the ordinary? Nalesnik> In any case, the warning should be more descriptive. Nalesnik> HTH, Nalesnik> David___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why warning: cannot end volta spanner?
On Tue, Oct 18, 2016 at 3:41 AM, Peter Toye <lilyp...@ptoye.com> wrote: > This is a forwarded message > From: Peter Toye <lilyp...@ptoye.com> > To: Simon Albrecht <simon.albre...@mail.de> > Date: Tuesday, October 11, 2016, 4:07:21 PM > Subject: Why warning: cannot end volta spanner? > > ===8<==Original message text=== > Simon, > > Thanks - that certainly does the trick. Though why there should be a > warning message there at all is still beyond me (see the title to this > thread!). The warning happens in lily/volta-engraver.cc, where there is a comment: /* fixme: be more verbose */ The warning is issued because the program expects to end the spanner either when the repeat element is over, or when a line break is encountered, as in your example. Consequently, you can set voltaSpannerDuration to Mom 5/1 or Mom 13/1 in your example with no warning. (With results identical to the default without the manual setting, of course.) I'm not sure of the point of the warning. Why else would you set voltaSpannerDuration unless you want something out of the ordinary? In any case, the warning should be more descriptive. HTH, David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why warning: cannot end volta spanner?
This is a forwarded message From: Peter Toye <lilyp...@ptoye.com> To: Simon Albrecht <simon.albre...@mail.de> Date: Tuesday, October 11, 2016, 4:07:21 PM Subject: Why warning: cannot end volta spanner? ===8<==Original message text=== Simon, Thanks - that certainly does the trick. Though why there should be a warning message there at all is still beyond me (see the title to this thread!). I can't find any reference in the manuals to the syntax of calling functions like this. There's a list of functions in the Notation and Internal reference manuals, but I can't see where it tells me how to use them, apart from the odd example of specific functions. Best regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com - Sunday, October 9, 2016, 7:26:40 PM, you wrote: Albrecht> On 09.10.2016 19:08, Peter Toye wrote: >> Re: Why warning: cannot end volta spanner? David, >> This is what I'd like. But it compiles with the warning message. My >> original questions was: why and can I get what I want without the warning? Albrecht> If everything is fine except for the warning, you can use Albrecht> #(ly:expect-warning "cannot end volta") Albrecht> It goes on top-level, once for every instance of the warning. If a Albrecht> future compilation issues fewer warnings than expected, there will be a Albrecht> warning about that. Albrecht> Best, Simon >> \version "2.18.2" >> \language "english" >> \score { >> \new Staff { >>\time 4/4 >>\clef treble >>\relative c'' >>{ >> c1 >> \repeat volta 2 { >>c d e f >> } >> \alternative { >>{ >> g f e d >>} >>{ >> \set Score.voltaSpannerDuration = #(ly:make-moment 4/4) >> \repeat unfold 2 { >>\repeat unfold 12 {g8 a} >>g f e d c d e f >> } >>} >> } >> g1 f e d c >>} >> } >> } >> Best regards, >> Peter >> mailto:lilyp...@ptoye.com >> www.ptoye.com <http://www.ptoye.com> >> - >> Friday, October 7, 2016, 7:03:43 PM, you wrote: >> *Wright> On Fri 07 Oct 2016 at 18:44:28 (+0100), Peter Toye wrote: >> >> Not exactly! I've modded my example and am getting interesting >> results. In my original music (far too long to show here) without the >> change to voltaSpannerDuration the 2nd time volta spanner stretches >> right over the repeat unfold (over several lines) without any error >> message. >> >> My original had two nested repeat unfolds (I didn't put this into >> my snippet an I didn't think it would be relevant), so I've replicated >> the correct structure below. With the change to voltaSpannerDuration I >> get the desired effect but a warning message. Without it there's no >> error message but the 2nd time volta spanner spans 5 bars - to the end >> of the line. Which is different from what happens in my original >> music. I can try to provide a reduced version which displays the >> issue, but it'll probably take some time to work it out. >> Wright> It might help to tell us exactly what you want to see printed, >> Wright> and how this differs from what has been posted here. >> Wright> Otherwise we're all left guessing. >> Wright> Cheers, >> Wright> David. >> ___ >> lilypond-user mailing list >> lilypond-user@gnu.org >> https://lists.gnu.org/mailman/listinfo/lilypond-user >> * ===8<===End of original message text===Title: Re: Why warning: cannot end volta spanner? Simon, Thanks - that certainly does the trick. Though why there should be a warning message there at all is still beyond me (see the title to this thread!). I can't find any reference in the manuals to the syntax of calling functions like this. There's a list of functions in the Notation and Internal reference manuals, but I can't see where it tells me how to use them, apart from the odd example of specific functions. Best regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com - Sunday, October 9, 2016, 7:26:40 PM, you wrote: Albrecht> On 09.10.2016 19:08, Peter Toye wrote: >> Re: Why warning: cannot end volta spanner? David, >> This is what I'd like. But it compiles with the warning message. My >> original questions was: why and can I get what I want without the warning? Albrecht> If everything is fine except for the warning, you can use Albrecht> #(ly:expect-warn
Re: Why warning: cannot end volta spanner?
On 09.10.2016 19:08, Peter Toye wrote: Re: Why warning: cannot end volta spanner? David, This is what I'd like. But it compiles with the warning message. My original questions was: why and can I get what I want without the warning? If everything is fine except for the warning, you can use #(ly:expect-warning "cannot end volta") It goes on top-level, once for every instance of the warning. If a future compilation issues fewer warnings than expected, there will be a warning about that. Best, Simon \version "2.18.2" \language "english" \score { \new Staff { \time 4/4 \clef treble \relative c'' { c1 \repeat volta 2 { c d e f } \alternative { { g f e d } { \set Score.voltaSpannerDuration = #(ly:make-moment 4/4) \repeat unfold 2 { \repeat unfold 12 {g8 a} g f e d c d e f } } } g1 f e d c } } } Best regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com <http://www.ptoye.com> - Friday, October 7, 2016, 7:03:43 PM, you wrote: *Wright> On Fri 07 Oct 2016 at 18:44:28 (+0100), Peter Toye wrote: >> Not exactly! I've modded my example and am getting interesting results. In my original music (far too long to show here) without the change to voltaSpannerDuration the 2nd time volta spanner stretches right over the repeat unfold (over several lines) without any error message. >> My original had two nested repeat unfolds (I didn't put this into my snippet an I didn't think it would be relevant), so I've replicated the correct structure below. With the change to voltaSpannerDuration I get the desired effect but a warning message. Without it there's no error message but the 2nd time volta spanner spans 5 bars - to the end of the line. Which is different from what happens in my original music. I can try to provide a reduced version which displays the issue, but it'll probably take some time to work it out. Wright> It might help to tell us exactly what you want to see printed, Wright> and how this differs from what has been posted here. Wright> Otherwise we're all left guessing. Wright> Cheers, Wright> David. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user * ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why warning: cannot end volta spanner?
David, This is what I'd like. But it compiles with the warning message. My original questions was: why and can I get what I want without the warning? \version "2.18.2" \language "english" \score { \new Staff { \time 4/4 \clef treble \relative c'' { c1 \repeat volta 2 { c d e f } \alternative { { g f e d } { \set Score.voltaSpannerDuration = #(ly:make-moment 4/4) \repeat unfold 2 { \repeat unfold 12 {g8 a} g f e d c d e f } } } g1 f e d c } } } Best regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com - Friday, October 7, 2016, 7:03:43 PM, you wrote: Wright> On Fri 07 Oct 2016 at 18:44:28 (+0100), Peter Toye wrote: >> Not exactly! I've modded my example and am getting interesting results. In >> my original music (far too long to show here) without the change to >> voltaSpannerDuration the 2nd time volta spanner stretches right over the >> repeat unfold (over several lines) without any error message. >> My original had two nested repeat unfolds (I didn't put this into my snippet >> an I didn't think it would be relevant), so I've replicated the correct >> structure below. With the change to voltaSpannerDuration I get the desired >> effect but a warning message. Without it there's no error message but the >> 2nd time volta spanner spans 5 bars - to the end of the line. Which is >> different from what happens in my original music. I can try to provide a >> reduced version which displays the issue, but it'll probably take some time >> to work it out. Wright> It might help to tell us exactly what you want to see printed, Wright> and how this differs from what has been posted here. Wright> Otherwise we're all left guessing. Wright> Cheers, Wright> David.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why warning: cannot end volta spanner?
On Fri 07 Oct 2016 at 18:44:28 (+0100), Peter Toye wrote: > Not exactly! I've modded my example and am getting interesting results. In my > original music (far too long to show here) without the change to > voltaSpannerDuration the 2nd time volta spanner stretches right over the > repeat unfold (over several lines) without any error message. > > My original had two nested repeat unfolds (I didn't put this into my snippet > an I didn't think it would be relevant), so I've replicated the correct > structure below. With the change to voltaSpannerDuration I get the desired > effect but a warning message. Without it there's no error message but the 2nd > time volta spanner spans 5 bars - to the end of the line. Which is different > from what happens in my original music. I can try to provide a reduced > version which displays the issue, but it'll probably take some time to work > it out. It might help to tell us exactly what you want to see printed, and how this differs from what has been posted here. Otherwise we're all left guessing. Cheers, David. \version "2.18.2" \language "english" \score { \new Staff { \time 4/4 \clef treble \relative c'' { c1 \repeat volta 2 { c d e f } \alternative { { g f e d } { % \set Score.voltaSpannerDuration = #(ly:make-moment 4/4) \set Score.voltaSpannerDuration = #(ly:make-moment 4/4) \repeat unfold 2 { \repeat unfold 12 {g8 a} g f e d c d e f } } } b1 a g f e } } } vv.pdf Description: Adobe PDF document ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why warning: cannot end volta spanner?
David, Not exactly! I've modded my example and am getting interesting results. In my original music (far too long to show here) without the change to voltaSpannerDuration the 2nd time volta spanner stretches right over the repeat unfold (over several lines) without any error message. My original had two nested repeat unfolds (I didn't put this into my snippet an I didn't think it would be relevant), so I've replicated the correct structure below. With the change to voltaSpannerDuration I get the desired effect but a warning message. Without it there's no error message but the 2nd time volta spanner spans 5 bars - to the end of the line. Which is different from what happens in my original music. I can try to provide a reduced version which displays the issue, but it'll probably take some time to work it out. Best regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com \version "2.18.2" \language "english" \score { \new Staff { \time 4/4 \clef treble \relative c'' { c1 \repeat volta 2 { c d e f } \alternative { { g f e d } { % \set Score.voltaSpannerDuration = #(ly:make-moment 4/4) \repeat unfold 2 { \repeat unfold 12 {g8 a} g f e d c d e f } } } b1 a g f e } } } - Thursday, October 6, 2016, 7:09:35 PM, you wrote: Wright> On Thu 06 Oct 2016 at 18:12:27 (+0100), Peter Toye wrote: >> Mark and Kieren, >> Of course! The reason I didn't spot it is that the alternative starts with a >> 16-bar section in a \repeat unfold 2, and that of course is a separate >> expression. >> It looks like I'll have to do the unfolding manually - what a pain! Wright> Why? \set Score.voltaSpannerDuration = #(ly:make-moment 4/4) Wright> still works. Wright> Cheers, Wright> David.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why warning: cannot end volta spanner?
On Thu 06 Oct 2016 at 18:12:27 (+0100), Peter Toye wrote: > Mark and Kieren, > > Of course! The reason I didn't spot it is that the alternative starts with a > 16-bar section in a \repeat unfold 2, and that of course is a separate > expression. > It looks like I'll have to do the unfolding manually - what a pain! Why? \set Score.voltaSpannerDuration = #(ly:make-moment 4/4) still works. Cheers, David. \version "2.18.2" \language "english" \score { \new Staff { \time 4/4 \clef treble \relative c'' { c1 \repeat volta 2 { c d e f } \alternative { { g f e d } { \set Score.voltaSpannerDuration = #(ly:make-moment 4/4) \repeat unfold 2 { g a b c } } } b a g } } } v.pdf Description: Adobe PDF document ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why warning: cannot end volta spanner?
Mark and Kieren, Of course! The reason I didn't spot it is that the alternative starts with a 16-bar section in a \repeat unfold 2, and that of course is a separate expression. It looks like I'll have to do the unfolding manually - what a pain! Best regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com - Thursday, October 6, 2016, 4:44:16 PM, you wrote: Peter, Try taking the “a, b, and c” out of the second ending, i, e, \alternative { {g f e g }{g }} a b c Mark From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Peter Toye Sent: Thursday, October 06, 2016 8:21 AM To: lilypond-user@gnu.org, Subject: Why warning: cannot end volta spanner? This rather follows on from https://lists.gnu.org/archive/html/lilypond-user/2016-02/msg00014.html and http://lists.gnu.org/archive/html/lilypond-user/2016-03/msg00531.html I am trying to do a similar thing with a volta repeat: a longish 1st time section without a long 2nd time volta indication. I tried to set the voltaSpannerDuration but this gives an error "cannot end volta spanner", which I don't understand. Is there a way of doing this without getting an error? It seems that LP tries to put the same number of bards into the 2nd time as the 1st time. A quick straw poll of printed music implies that the norm for the final alternative is a single bar. Is this a bug or am I missing something? A minimal example follows. \version "2.18.2" \language "english" \score { \new Staff { \time 4/4 \clef treble \relative c'' { c1 \repeat volta 2 { c d e f } \alternative { { g f e d } { \set Score.voltaSpannerDuration = #(ly:make-moment 4/4) g a b c } } b a g } } } Regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Why warning: cannot end volta spanner?
Peter, Try taking the "a, b, and c" out of the second ending, i, e, \alternative { {g f e g }{g }} a b c Mark From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Peter Toye Sent: Thursday, October 06, 2016 8:21 AM To: lilypond-user@gnu.org <mailto:lilypond-user@gnu.org> , Subject: Why warning: cannot end volta spanner? This rather follows on from <https://lists.gnu.org/archive/html/lilypond-user/2016-02/msg00014.html> https://lists.gnu.org/archive/html/lilypond-user/2016-02/msg00014.html and <http://lists.gnu.org/archive/html/lilypond-user/2016-03/msg00531.html> http://lists.gnu.org/archive/html/lilypond-user/2016-03/msg00531.html I am trying to do a similar thing with a volta repeat: a longish 1st time section without a long 2nd time volta indication. I tried to set the voltaSpannerDuration but this gives an error "cannot end volta spanner", which I don't understand. Is there a way of doing this without getting an error? It seems that LP tries to put the same number of bards into the 2nd time as the 1st time. A quick straw poll of printed music implies that the norm for the final alternative is a single bar. Is this a bug or am I missing something? A minimal example follows. \version "2.18.2" \language "english" \score { \new Staff { \time 4/4 \clef treble \relative c'' { c1 \repeat volta 2 { c d e f } \alternative { { g f e d } { \set Score.voltaSpannerDuration = #(ly:make-moment 4/4) g a b c } } b a g } } } Regards, Peter <mailto:lilyp...@ptoye.com> mailto:lilyp...@ptoye.com <http://www.ptoye.com> www.ptoye.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why warning: cannot end volta spanner?
Peter, On Thu, Oct 6, 2016 at 9:21 AM, Peter Toye [via Lilypond] < ml-node+s1069038n195180...@n5.nabble.com> wrote: > This rather follows on from https://lists.gnu.org/archive/ > html/lilypond-user/2016-02/msg00014.html and > http://lists.gnu.org/archive/html/lilypond-user/2016-03/msg00531.html > > I am trying to do a similar thing with a volta repeat: a longish 1st time > section without a long 2nd time volta indication. I tried to set the > voltaSpannerDuration but this gives an error "cannot end volta spanner", > which I don't understand. Is there a way of doing this without getting an > error? It seems that LP tries to put the same number of bards into the 2nd > time as the 1st time. A quick straw poll of printed music implies that the > norm for the final alternative is a single bar. Is this a bug or am I > missing something? > > A minimal example follows. > > \version "2.18.2" > > \language "english" > > \score { > \new Staff { > >\time 4/4 >\clef treble > >\relative c'' >{ > c1 > \repeat volta 2 { >c d e f > } > \alternative { >{ > g f e d >} >{ > \set Score.voltaSpannerDuration = #(ly:make-moment 4/4) > g a b c >} > } > b a g >} > } > } > Thank you for the MWE. If you want to show the second alternate bracket over the "g" instead of "g a b c", then why not just move the "a b c" out altogether? Then the \set Score.voltaSpannerDuration part isn't necessary at all: \version "2.18.2" \language "english" \score { \new Staff { \time 4/4 \clef treble \relative c'' { c1 \repeat volta 2 { c d e f } \alternative { { g f e d } { g %<-- JUST THIS HERE } } a b c %<-- THE REST HERE b a g } } } HTH, Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-Why-warning-cannot-end-volta-spanner-tp195181.html Sent from the User mailing list archive at Nabble.com.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why warning: cannot end volta spanner?
Hi Peter, > I am trying to do a similar thing with a volta repeat: a longish 1st time > section without a long 2nd time volta indication. Is this not what you want? \version "2.18.2" \language "english" \score { \new Staff { \time 4/4 \clef treble \relative c'' { c1 \repeat volta 2 { c d e f } \alternative { { g f e d } { g } } a b c b a g } } } Hope that helps! Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Why warning: cannot end volta spanner?
This rather follows on from https://lists.gnu.org/archive/html/lilypond-user/2016-02/msg00014.html and http://lists.gnu.org/archive/html/lilypond-user/2016-03/msg00531.html I am trying to do a similar thing with a volta repeat: a longish 1st time section without a long 2nd time volta indication. I tried to set the voltaSpannerDuration but this gives an error "cannot end volta spanner", which I don't understand. Is there a way of doing this without getting an error? It seems that LP tries to put the same number of bards into the 2nd time as the 1st time. A quick straw poll of printed music implies that the norm for the final alternative is a single bar. Is this a bug or am I missing something? A minimal example follows. \version "2.18.2" \language "english" \score { \new Staff { \time 4/4 \clef treble \relative c'' { c1 \repeat volta 2 { c d e f } \alternative { { g f e d } { \set Score.voltaSpannerDuration = #(ly:make-moment 4/4) g a b c } } b a g } } } Regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user