Slurs and repeats

2009-02-15 Thread Tim McNamara
I can't figure out how to end a slur across a repeat into an  
alternate ending and the documentation doesn't seem to cover this.  I  
get an error message about being unable to end the slur.  Of course  
this could always be the \endUserError bug!


The workaround I have adopted is to use \repeatTie which at least  
gives me a mark on the page that works well enough; there seems to be  
no \repeatSlur equivalent.  The page renders despite the error being  
reported.  Is there a correct way to do this that I haven't been able  
to figure out?  I didn't have luck searching the archives of the  
mailing list for a solution, unfortunately.


Thanks!


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


slurs and repeats

2016-07-05 Thread Martin Tarenskeen


Hi,

In the following example, how can I write a slur that starts at the end of 
the first \alternative to repeat the corresponding slur from the pickup 
bar?


I hope my question/example is clear.

Martin



\version "2.19.44"

music = \relative {
  \partial 4
  c'8( d | % this slur is OK
  \repeat volta 2 {
e4) g g4. a8 | g4 e c4. d8 |
  }
  \alternative {
{ e4 e d c | d2. c8( d | } % this slur is not allowed?
{ e4 e d d | c2. }
  }
  \bar "|." 
}


\score {
  \new Staff {
\music
  }
  \layout {}
}



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


Re: Slurs and repeats

2009-02-16 Thread Robin Bannister

Tim McNamara wrote:

 Is there a correct way to do this that I haven't been able to figure out?


No. Not yet. 
But see the recent thread at 
http://lists.gnu.org/archive/html/lilypond-user/2009-02/msg00028.html


Cheers,
Robin


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


Re: slurs and repeats

2016-07-05 Thread Robert Blackstone

On 5 Jul 2016, at 10:03 , Martin Tarenskeen  wrote:

> 
> Hi,
> 
> In the following example, how can I write a slur that starts at the end of 
> the first \alternative to repeat the corresponding slur from the pickup bar?
> 
> I hope my question/example is clear.
> 
> Martin
> 
> 
> 
> \version "2.19.44"
> 
> music = \relative {
>  \partial 4
>  c'8( d | % this slur is OK
>  \repeat volta 2 {
>e4) g g4. a8 | g4 e c4. d8 |
>  }
>  \alternative {
>{ e4 e d c | d2. c8( d | } % this slur is not allowed?
>{ e4 e d d | c2. }
>  }
>  \bar "|." }
> 
> \score {
>  \new Staff {
>\music
>  }
>  \layout {}
> }
> 
> 


 Hi Martin,

I think you forgot the ) after the e4 in the 3rd bar of \alternative.
Anyway, this works for me, but I'm not sure it is what you want.
BTW, I use TeXShop as the editor and it seems more forgiving than some other 
editors.

Best regards,
Robert Blackstone


\version "2.19.44"
\relative {
 c''8( d e f~ f2~ | f8) f e d c2 |
}


%What's wrong here ?

\version "2.19.44"

music = \relative {
 \partial 4
 c'8( d | % this slur is OK
 \repeat volta 2 {
   e4) g g4. a8 | g4 e c4. d8 |
 }
 \alternative {
   { e4 e d c | d2. c8( d | } % this slur is not allowed?
   { e4) e d d | c2. } % ) added after e4
 }
 \bar "|." }

\score {
 \new Staff {
   \music
 }
 \layout {}
}
% 


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


Re: slurs and repeats

2016-07-05 Thread Martin Tarenskeen



On Tue, 5 Jul 2016, Robert Blackstone wrote:


Hi Martin,

I think you forgot the ) after the e4 in the 3rd bar of \alternative.
Anyway, this works for me, but I'm not sure it is what you want.



music = \relative {
\partial 4
c'8( d | % this slur is OK
\repeat volta 2 {
  e4) g g4. a8 | g4 e c4. d8 |
}
\alternative {
  { e4 e d c | d2. c8( d | } % this slur is not allowed?
  { e4) e d d | c2. } % ) added after e4
}


Hi,

This draws a slur from the end of the first alternative ending to the 
beginning of the second alternative ending, which makes no sense (and you 
may even argue it's a bug that this does not give an error or warning 
message).


I need a (partial) slur at the end of the first ending to indicate it's 
slurred back to the first e' of the repeated segment. Just like the 
pickup bar (\partial 4) is slurred to that same note.


--

Martin



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


Re: slurs and repeats

2016-07-05 Thread Stephen MacNeil
Hi Martin

not sure if there is a better way but .
Do you mean like

\relative {

\partial 4

c'8( d | % this slur is OK

\repeat volta 2 {

e4) g g4. a8 | g4 e c4. d8 |

}

\alternative {

{ e4 e d c | d2. c8 d -\tweak control-points #'((-2 . -3.8) (-1 . -4.5) (0
. -4.5) (1 . -4)) ( <> ) | } % this slur is not allowed?

{ e4 e d d | c2. r4 } % ) added after e4

}\break

e -\tweak control-points #'((-1 . -3) (-.5 . -3.2) (0 . -3.4) (.7 . -2.8))
( <> ) r2.|

}


I didn't bother to make it look nice.. you have to do some work :)


all this and more can be found reading the docs!

http://lilypond.org/doc/v2.18/Documentation/notation/modifying-shapes

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


Re: slurs and repeats

2016-07-05 Thread Marc Hohl

Am 05.07.2016 um 11:42 schrieb Martin Tarenskeen:
[...]

I need a (partial) slur at the end of the first ending to indicate it's
slurred back to the first e' of the repeated segment. Just like the
pickup bar (\partial 4) is slurred to that same note.


Have you considered drawing the slur to the d and tweak its appearance 
so that it looks like a "half" slur?


Marc





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


Re: slurs and repeats

2016-07-05 Thread Martin Tarenskeen



On Tue, 5 Jul 2016, Marc Hohl wrote:


Am 05.07.2016 um 11:42 schrieb Martin Tarenskeen:
[...]

 I need a (partial) slur at the end of the first ending to indicate it's
 slurred back to the first e' of the repeated segment. Just like the
 pickup bar (\partial 4) is slurred to that same note.


Have you considered drawing the slur to the d and tweak its appearance so 
that it looks like a "half" slur?


Good idea. I have thought of that, but have to do some reading and 
experiments to do it.


--

MT

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


Re: slurs and repeats

2016-07-05 Thread Martin Tarenskeen



On Tue, 5 Jul 2016, Stephen MacNeil wrote:


Hi Martin

not sure if there is a better way but .


Thank you all for suggestions. I have now solved it with something like 
this (the \shape coordinates needs some finetuning but this is the 
general idea):




\version "2.19.44"

music = \relative {
  \partial 4
  c'8( d |
  \repeat volta 2 {
e4) g g4. a8 | g4 e c4. d8 |
  }
  \alternative {
{
  e4 e d c | d2.
  \shape #'((0 . 0) (0 . 0) (0 . -0.2) (2.5 . 0.5)) Slur
  c8( d) |
}
{ e4 e d d | c2. }
  }
  \bar "|." 
}


\score {
  \new Staff {
\music
  }
  \layout {}
}



P.S. This is not really the score I am working on, but just a tiny example 
for my own LilyPond education, to post in this list and to learn from the 
answers :-)


M.T.


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