Re: Spanner start and end in different voices or hack

2024-06-13 Thread Werner LEMBERG

> I’d like for the bracket to extend to the end of the bar.  [...]

If you use `<< { } // { } >>`, the voices are using names '0', '1',
etc.  However, if you use `<< { } \new Voice { } >>`, the name of the
first voice in `<<>>` doesn't change.  This might lead to the
following solution.

```
\version "2.24.3"
\layout {
  \context {
\Voice
\consists Horizontal_bracket_engraver
  }
}

\relative c'' {
  a8 a b\startGroup b
<< { \stemUp c4 d\stopGroup }
   \new Voice { \stemDown a2 } >>
}
```


Werner


Spanner start and end in different voices or hack

2024-06-13 Thread Fennel
I have this snippet:

\version "2.24.3"
\layout {
\context { \Voice
\consists Horizontal_bracket_engraver
}
}

\relative c'' {
a8 a b\startGroup b\stopGroup << {c4 d} \\ {a2} >>
}

[image.png]
I’d like for the bracket to extend to the end of the bar. Of course the “simple 
solution” a8 a b\startGroup b << {c4 d\stopGroup} \\ {a2} >> or in the other 
voice compiles but throws a warning and fails to produce the correct output 
because the start and stop are scoped differently. I include the beams on the 
first 2 beats because the project I’m working on requires that beam remain 
intact and have correct stem direction. If at all possible, keeping the first 
half of the bar in the single outer voice would be fantastic. Is there a way 
around the voice problem or a way to tweak the length of the spanner beyond the 
specified endpoint?

Fennel

​

Re: RehearsalMarks, slurs and ties overlapping

2024-06-13 Thread Kieren MacMillan
Hi Federico,

> How can I overlap the perfect tie (slur) in A with the mark position in B and 
> C so to use the .whiteout and .layer properties to put the slur/tie behind 
> the mark and save some vertical space?

Maybe something like this…?

%%%  SNIPPET BEGINS
\version "2.25.11"

\relative c''' { 
  g1~ \mark \default g1 
  g1~ \tweak extra-offset #'(-0.25 . -1.5) \tweak whiteout #2 \mark \default g1 
  g1( \tweak extra-offset #'(-0.25 . -1.5) \tweak whiteout #2 \mark \default e1 
)  
}
%%%  SNIPPET ENDS

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.




Re: RehearsalMarks, slurs and ties overlapping

2024-06-13 Thread Kieren MacMillan
Hi Federico,

> However I wonder if there is a more general approach. Something «allowing» 
> the slurs not taking the rehearsal marks into consideration when defining its 
> shape parameters.

This is fairly “nuclear”, but:

%%%  SNIPPET BEGINS
\version "2.25.11"

ignoreV =
   \propertyTweak vertical-skylines ##f
   \propertyTweak extra-spacing-height #empty-interval
   \etc

\relative c''' { 
  \ignoreV Score.RehearsalMark
  \override Score.RehearsalMark.Y-offset = #2.75
  \override Score.RehearsalMark.whiteout = #2
  g1~ \mark \default g1 
  g1~ \mark \default g1 
  g1( \mark \default e1 )  
}
%%%  SNIPPET ENDS

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.




Re: RehearsalMarks, slurs and ties overlapping

2024-06-13 Thread Federico Sarudiansky
Hi again, Kieren!

Excellent! However I wonder if there is a more general approach. Something
«allowing» the slurs not taking the rehearsal marks into consideration when
defining its shape parameters.

All the best!

F.

El jue, 13 jun 2024 a las 11:28, Kieren MacMillan (<
kie...@kierenmacmillan.info>) escribió:

> Hi Federico,
>
> > How can I overlap the perfect tie (slur) in A with the mark position in
> B and C so to use the .whiteout and .layer properties to put the slur/tie
> behind the mark and save some vertical space?
>
> Maybe something like this…?
>
> %%%  SNIPPET BEGINS
> \version "2.25.11"
>
> \relative c''' {
>   g1~ \mark \default g1
>   g1~ \tweak extra-offset #'(-0.25 . -1.5) \tweak whiteout #2 \mark
> \default g1
>   g1( \tweak extra-offset #'(-0.25 . -1.5) \tweak whiteout #2 \mark
> \default e1 )
> }
> %%%  SNIPPET ENDS
>
> 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.
>
>


RehearsalMarks, slurs and ties overlapping

2024-06-13 Thread Federico Sarudiansky
Hi.
Please consider the following:

\version "2.25.15"

\relative c''' {
  g1~ \mark \default g1

  \override Score.RehearsalMark.outside-staff-priority = #1
  \override Tie.outside-staff-priority = #2
  g1~ \mark \default g1

  \override Slur.outside-staff-priority = #2
  g1 ( \mark \default e1 )
}

It produces:

[image: image.png]
How can I overlap the perfect tie (slur) in A with the mark position in B
and C so to use the .whiteout and .layer properties to put the slur/tie
behind the mark and save some vertical space?
Thanks in advance!
Regards,
F.