Re: Why warning: cannot end volta spanner?

2016-10-06 Thread David 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!
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: Ties, distance from barline at a system break

2016-10-06 Thread Simon Albrecht

On 06.10.2016 13:53, Kieren MacMillan wrote:

Hi Robert,

Did you download and install the openlilylib framework on your path?

No, I didn't. Frankly, I had no idea that something like that would be 
necessary.

\shapeII currently requires it (though I hope one day, \shapeII or similar is 
built in to the main distribution of Lilypond).


Unfortunately, that’s a long way still, since there are grave issues 
with \shapeII (see the openlilylib issue tracker). On one hand, I 
imagine that building it in the LilyPond core (C++ slur code !) would be 
a route to solve them, but that’s also a quite advanced task, it would 
seem. Though I agree that much would be gained!


Best, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Why warning: cannot end volta spanner?

2016-10-06 Thread Peter Toye
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?

2016-10-06 Thread Mark Stephen Mrotek
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?

2016-10-06 Thread tisimst
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?

2016-10-06 Thread Kieren MacMillan
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?

2016-10-06 Thread Peter Toye
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: sustain pedal

2016-10-06 Thread Kieren MacMillan
Hi Daniel,

I would suggest using a second/hidden voice with skips for the pedalling 
instructions:

\version "2.18.2"

\paper { ragged-right = ##f }

\relative c {
  \set Staff.pedalSustainStyle = #'mixed
  \time 6/8
  \clef bass
  <<
2.\fermata
\new Voice { s4\sustainOn s\sustainOff\sustainOn s\sustainOff }
  >>
}

Hope this 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


Re: sustain pedal

2016-10-06 Thread Pierre Perol-Schneider
Hi Daniel,

Please see: http://lilypond.org/tiny-examples.html

How about:

\version "2.18.2"

\relative c {
  \time 6/8
  \clef bass
  2.\fermata
  -\tweak X-offset #-2
  -\tweak X-extent #'(0 . 0)
  -\markup\concat { \musicglyph #"pedal.Ped" \hspace #1.5 \musicglyph
#"pedal.*" }
}

See also:
http://lilypond.1069038.n5.nabble.com/Pedal-markings-at-the-end-of-a-piece-of-music-td17175.html#a17177

HTH,
Pierre


2016-10-06 14:33 GMT+02:00 Daniel R. Grayson :

> I know how to use \sustainOn and \sustainOff to show a pedaling that
> extends from one
> note to the start of the next, but how do I indicate pedaling for single
> isolated notes?
>
> ___
> 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


sustain pedal

2016-10-06 Thread Daniel R. Grayson
I know how to use \sustainOn and \sustainOff to show a pedaling that
extends from one
note to the start of the next, but how do I indicate pedaling for single
isolated notes?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Ties, distance from barline at a system break

2016-10-06 Thread Kieren MacMillan
Hi Robert,

>> Did you download and install the openlilylib framework on your path?
> No, I didn't. Frankly, I had no idea that something like that would be 
> necessary.

\shapeII currently requires it (though I hope one day, \shapeII or similar is 
built in to the main distribution of Lilypond).

> There was no separate log-file but I copied he text from the console (I use 
> TeXShop as the LilyPond editor) and pasted it in the Post Script of this 
> mail. It speaks of a fatal error but nevertheless generates a nice pdf (with 
> no improvement of the tie-distances of course). But I should have noticed the 
> error warnings like " error: unknown escaped string: `\shapeII' " etc.

Yes — that’s the key. And the reason for the empty measure.

> Anyway, I will follow your advice and download and install  the openlilylib 
> framework on my path.

Let us know how it goes!
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


Re: Ties, distance from barline at a system break

2016-10-06 Thread Andrew Bernard
Hi Robert,

As I briefly mentioned \shapeII is in the openlilylib project. It's a
generalisation of the builtin \shape. The openlilylib directory containing
that is called 'notation-snippets/shaping-bezier-curves'. There is a well
written paper there on how to use it with good examples.

Andrew


On 6 October 2016 at 18:22, Robert Blackstone 
 wrote:

> On 5 Oct 2016, at 19:03 , Kieren MacMillan 
> wrote:
>
> Did you download and install the openlilylib framework on your path?
>
>
> Hi Kieren,
>
> No, I didn't. Frankly, I had no idea that something like that would be
> necessary.
>

On 6 October 2016 at 18:22, Robert Blackstone 
wrote:

> On 5 Oct 2016, at 19:03 , Kieren MacMillan 
> wrote:
>
> Did you download and install the openlilylib framework on your path?
>
>
> Hi Kieren,
>
> No, I didn't. Frankly, I had no idea that something like that would be
> necessary.
> There was no separate log-file but I copied he text from the console (I
> use TeXShop as the LilyPond editor) and pasted it in the Post Script of
> this mail. It speaks of a fatal error but nevertheless generates a nice pdf
> (with no improvement of the tie-distances of course). But I should have
> noticed the error warnings like " error: unknown escaped string:
> `\shapeII' " etc.
>
> Anyway, I will follow your advice and download and install  the
> openlilylib framework on my path.
> It is terra incognita for me but I'll have a go at it and if and when I
> get stuck I will scream for some more help.
>
> Thanks for your help.
>
> Best regards,
> Robert
>
>
> % text in the console 
>
> Feeding tie_distance from_barline_at_system_break-test2_ly.tex to
> lilypond... Please wait...
> Processing `tie_distance from_barline_at_system_break-test2_ly.tex'
> Parsing...
> tie_distance from_barline_at_system_break-test2_ly.tex:10:31: error:
> syntax error, unexpected SCM_TOKEN, expecting '.' or '=' or ','
> system-system-spacing
>   #' basic-distance = #5
> tie_distance from_barline_at_system_break-test2_ly.tex:25:3: error:
> unknown escaped string: `\shapeII'
>
>
>   \shapeII #'((() () () (-0.6 . 0))
> tie_distance from_barline_at_system_break-test2_ly.tex:25:3: error:
> unrecognized string, not in text script or \lyricmode
>
>
>   \shapeII #'((() () () (-0.6 . 0))
> tie_distance from_barline_at_system_break-test2_ly.tex:25:12: warning:
> Ignoring non-music expression
>   \shapeII
>#'((() () () (-0.6 . 0))
> tie_distance from_barline_at_system_break-test2_ly.tex:27:17: error:
> unrecognized string, not in text script or \lyricmode
>   )
> Tie
> Interpreting music...
> Preprocessing graphical objects...
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Layout output to `/var/folders/mx/58psmpkj72vfd8pmqc1vmbrhgp
> /T//lilypond-MFFoGy'...
> Converting to `tie_distance from_barline_at_system_break-test2_ly.pdf'...
> Deleting `/var/folders/mx/58psmpkj72vfd8pmqc1vmbrhgp
> /T//lilypond-MFFoGy'...
> fatal error: failed files: "tie_distance from_barline_at_system_break-
> test2_ly.tex"
> Finished.
>
> %%
>
> ___
> 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: Ties, distance from barline at a system break

2016-10-06 Thread Robert Blackstone
On 5 Oct 2016, at 19:03 , Kieren MacMillan  
wrote:

> Did you download and install the openlilylib framework on your path?


Hi Kieren,

No, I didn't. Frankly, I had no idea that something like that would be 
necessary. 
There was no separate log-file but I copied he text from the console (I use 
TeXShop as the LilyPond editor) and pasted it in the Post Script of this mail. 
It speaks of a fatal error but nevertheless generates a nice pdf (with no 
improvement of the tie-distances of course). But I should have noticed the 
error warnings like " error: unknown escaped string: `\shapeII' " etc.

Anyway, I will follow your advice and download and install  the openlilylib 
framework on my path.
It is terra incognita for me but I'll have a go at it and if and when I get 
stuck I will scream for some more help.

Thanks for your help.

Best regards,
Robert


% text in the console 

Feeding tie_distance from_barline_at_system_break-test2_ly.tex to lilypond... 
Please wait...
Processing `tie_distance from_barline_at_system_break-test2_ly.tex'
Parsing...
tie_distance from_barline_at_system_break-test2_ly.tex:10:31: error: syntax 
error, unexpected SCM_TOKEN, expecting '.' or '=' or ','
system-system-spacing 
  #' basic-distance = #5
tie_distance from_barline_at_system_break-test2_ly.tex:25:3: error: unknown 
escaped string: `\shapeII'
  
  \shapeII #'((() () () (-0.6 . 0))
tie_distance from_barline_at_system_break-test2_ly.tex:25:3: error: 
unrecognized string, not in text script or \lyricmode
  
  \shapeII #'((() () () (-0.6 . 0))
tie_distance from_barline_at_system_break-test2_ly.tex:25:12: warning: Ignoring 
non-music expression
  \shapeII 
   #'((() () () (-0.6 . 0))
tie_distance from_barline_at_system_break-test2_ly.tex:27:17: error: 
unrecognized string, not in text script or \lyricmode
  ) 
Tie
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to 
`/var/folders/mx/58psmpkj72vfd8pmqc1vmbrhgp/T//lilypond-MFFoGy'...
Converting to `tie_distance from_barline_at_system_break-test2_ly.pdf'...
Deleting `/var/folders/mx/58psmpkj72vfd8pmqc1vmbrhgp/T//lilypond-MFFoGy'...
fatal error: failed files: "tie_distance 
from_barline_at_system_break-test2_ly.tex"
Finished.

%%___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user