Hi Jan-Peter,

I know that this is a standard solution ; personnally, I'm not a big fan
simply because this tie looks like... a tie ;)
So I'd suggest two options :
1. With \repeatTie plus a vertical tweak
2. With a hidden grace note.

So here it goes:

\version "2.18.2"

%% option 1:
{
  % I want a slur from the b to the c in 1) and to the a in 2)
  \repeat volta 2 { b'1 ( }
  \alternative
  {
    { c''1 ) }
    {
      a'1
      -\tweak Y-offset #0.2 % <= for a better 'slur' look.
      ^\repeatTie

      %% Description:
      \tweak self-alignment-X #RIGHT
      \mark\markup
        \with-color #red
        \fontsize #-2 {
          Alternative slur with
          \bold\typewriter\with-color #blue  "\\repeatTie"
          :
        }
    }
  }
}

%% Option 2
{
  % I want a slur from the b to the c in 1) and to the a in 2)
  \repeat volta 2 { b'1 ( }
  \alternative
  {
    { c''1 ) }
    {
      \acciaccatura {          % <= slured grace note
        \once\slurUp           % slur shows 'up'
        \once\hideNotes b'1     % <= hide starting note
      }
      a'1

      %% Description:
      \tweak self-alignment-X #RIGHT
      \mark\markup
        \with-color #red
        \fontsize #-2 { Here with a hidden grace note: }
    }
  }
}

Cheers,
Pierre

2015-03-04 15:04 GMT+01:00 Jan-Peter Voigt <[email protected]>:

> Sorry ... I was too fast ;)
>
> I meant
> { a'1\repeatTie }
>
>
> Am 04.03.2015 um 15:01 schrieb Jan-Peter Voigt:
>
>  Hi Markus,
>>
>> you can use
>> { a'1\repeatSlur }
>>
>> HTH
>> Jan-Peter
>>
>>
>  Am 04.03.2015 um 14:58 schrieb [email protected]:
>>
>>> Hello,
>>>
>>> Being quite a rookie in music notation and lilypond in general, I have a
>>> problem:
>>>
>>> \version "2.18.2"
>>>
>>> {
>>>    % I want a slur from the b to the c in 1) and to the a in 2)
>>>    \repeat volta 2 { b'1 ( }
>>>    \alternative
>>>    {
>>>      { c''1 ) }
>>>      { a'1  ) }
>>>    }
>>> }
>>>
>>> This gives me a warning:
>>>
>>> slur_to_next_alternative.ly:9:12: warning: cannot end slur
>>>      { a'1
>>>             ) }
>>>
>>> What I would like to have is a slur - indication in 2) like I have it in
>>> the
>>> sheet that I'm trying to set in lilypond.
>>>
>>> Oh, and the final result will be part of a choir rehearsal - maybe that's
>>> important for the solution?
>>>
>>> Thanks for your help,
>>>
>>
>>
>> _______________________________________________
>> lilypond-user mailing list
>> [email protected]
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to