Re: slurs problem with voices

2024-05-02 Thread Knute Snortum
On Wed, May 1, 2024 at 10:55 PM Robert Garrigos  wrote:

> Oh this is a bit embarrassing, such a basic error….. sorry, I never
> realized that the parenthesis needs to be right after the first note.
>

Nothing to be embarrassed about.  It takes some getting used to.


--
Knute Snortum


Re: slurs problem with voices

2024-05-01 Thread Robert Garrigos
Oh this is a bit embarrassing, such a basic error….. sorry, I never realized 
that the parenthesis needs to be right after the first note.

Thanks all.

Robert

> El 2 maig 2024, a les 2:49, Mark Stephen Mrotek  va 
> escriure:
> 
> Timothy,
>  
> Perhaps this?
>  
> Mark
>  
> \version "2.24.3"
>  
> \relative c' {
> \time 3/4
>  
> <<{b'4 c2~ | 8 [q]} \\
>   {d4 d2 (| \stemUp e4)}>> r8  r  |
>  
> }
>  
> From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org 
>  On Behalf Of Timothy 
> Lanfear
> Sent: Wednesday, May 1, 2024 2:15 PM
> To: Robert Garrigos ; LilyPond Users 
> 
> Subject: Re: slurs problem with voices
>  
> On 01/05/2024 21:57, Robert Garrigos wrote: 
>>  
>> Why is not the first example working? I tried with explicit voicing with the 
>> same results.
>>  
>> Thanks.
>>  
>> Robert
> The slur starts at the d2 so must be placed with that note following the 
> pitch and duration, 
> { d4 d2( | \hideNotes ef8)} 
> -- 
> Timothy Lanfear, Bristol, UK.



RE: slurs problem with voices

2024-05-01 Thread Mark Stephen Mrotek
Timothy,

 

Perhaps this?

 

Mark

 

\version "2.24.3"

 

\relative c' {

\time 3/4

 

<<{b'4 c2~ | 8 [q]} \\

  {d4 d2 (| \stemUp e4)}>> r8  r  |

 

}

 

From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org 
 On Behalf Of Timothy 
Lanfear
Sent: Wednesday, May 1, 2024 2:15 PM
To: Robert Garrigos ; LilyPond Users 

Subject: Re: slurs problem with voices

 

On 01/05/2024 21:57, Robert Garrigos wrote: 

 
Why is not the first example working? I tried with explicit voicing with the 
same results.
 
Thanks.
 
Robert

The slur starts at the d2 so must be placed with that note following the pitch 
and duration, 

{ d4 d2( | \hideNotes ef8)} 

-- 
Timothy Lanfear, Bristol, UK.


Re: slurs problem with voices

2024-05-01 Thread Knute Snortum
On Wed, May 1, 2024 at 1:59 PM Robert Garrigos  wrote:

> I have this music to engrave, note the slur:
> [...]
> Why is not the first example working? I tried with explicit voicing with
> the same results.
>

Slurs in LilyPond are "post events", meaning they always go *after* the
note.   So if you want to slur from note a to note b, you write:

a( b)

The above slur will start on the note a and end on the note b.


--
Knute Snortum


Re: slurs problem with voices

2024-05-01 Thread Timothy Lanfear

On 01/05/2024 21:57, Robert Garrigos wrote:

Why is not the first example working? I tried with explicit voicing with the 
same results.

Thanks.

Robert


The slur starts at the d2 so must be placed with that note following the 
pitch and duration,


{ d4 d2( | \hideNotes ef8)}

--
Timothy Lanfear, Bristol, UK.


Re: slurs problem with voices

2024-05-01 Thread Kieren MacMillan
Hi Robert,

> I tried different approaches but cannot get that slur.

\version "2.25.14"
\language "english"

global = {
  \key ef \minor
  \time 3/4
}

\relative c' {
  \clef treble
  \global
  <<
{ bf'4 cf2 \tweak staff-position #5.1 ~ | 8 8 r8  r8  }
\\
{ d4 d2( | \hideNotes ef8) }
\\
{ s4 \tweak horizontal-shift #1 f gf8 af | s2. }
  >>
}

Note that I also turned your \once \override commands into \tweak commands 
(which feel more natural to me).

> Why is not the first example working?

You placed the slur start parenthesis in the wrong location.  :)

Hope that helps!
Kieren.
__

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.




slurs problem with voices

2024-05-01 Thread Robert Garrigos
I have this music to engrave, note the slur:



I tried different approaches but cannot get that slur. This is my code, with 
two examples:

\version "2.25.14"
\language "english"

global = {
  \key ef \minor
  \time 3/4
}

first_example = \relative c' {
\clef treble
  \global
  <<
{bf'4 \once \override Tie.staff-position = 5.1 cf2~ | 8 8 r8  r8 }
\\
{ d4 d2 |  \hideNotes (ef8)} % this slur doesn’t get printed
\\
{s4 \once \override NoteColumn.horizontal-shift = #1 f  gf8 af  | s2.}
  >>
}

second_example = \relative c' {
\clef treble
  \global
  <<
{bf'4 \once \override Tie.staff-position = 5.1 cf2~ | 8 8 r8  r8 }
\\
{ d4 (d2 |  \hideNotes ef8)} % this slur does get printed
\\
{s4 \once \override NoteColumn.horizontal-shift = #1 f  gf8 af  | s2.}
  >>
}

\score {
  \new Staff \first_example
}

\score {
  \new Staff \second_example
}


first example prints no slur:



second example prints a slur where it is supposed to be, according the code, 
although it is not what I want:



Why is not the first example working? I tried with explicit voicing with the 
same results.

Thanks.

Robert