Re: Getting voices to merge in a complex measure

2022-05-07 Thread Knute Snortum
On Sat, May 7, 2022 at 12:47 AM Lukas-Fabian Moser  wrote:
>
> Hi Knute,
>
> That seems to be an issue with the shifting mechanisms for simultaneous
> upwards-facing (\voiceOne, \voiceThree) voices.
>
> Compare:
>
> \new Staff {
>   \voices 1,3,4 <<
>  r4 \\
>  { f'8 e' f' c' } \\
>  { c'8 c' c' c' }
>>>
> }
>
> \new Staff {
>   \voices 1,3,4 <<
>  { g''8 g''8 g'' g'' } \\
>  { f'8 e' f' c' } \\
>  { c'8 c' c' c' }
>>>
> }
>
> \new Staff {
>   \voices 1,3,4 <<
>  { g''8 g''8 g'' g'' } \\
>  { f'8 e' f' \tweak NoteColumn.force-hshift 0 c' } \\
>  { c'8 c' c' c' }
>>>
> }
>
> I'm not sure if the force-hshift tweak is the definitive way to do it,
> but it also helps in your example.
>
> Lukas
>

The force-hshift seems to do the trick, thanks!



Re: Getting voices to merge in a complex measure

2022-05-07 Thread Lukas-Fabian Moser

Hi Knute,

Am 06.05.22 um 22:57 schrieb Knute Snortum:

I'm engraving Chopin's Prelude No. 1 in C and I'm having trouble
getting two voices to merge.  It's the two lower d's in the last 16th
of the measure.  I've attached the source code and a picture of what
it looks like.  The second picture is how I would like it to look.  I
have notes in the source code that document some of what I discovered
fooling around with the notes.

Any help would be appreciated.


That seems to be an issue with the shifting mechanisms for simultaneous 
upwards-facing (\voiceOne, \voiceThree) voices.


Compare:

\new Staff {
 \voices 1,3,4 <<
    r4 \\
    { f'8 e' f' c' } \\
    { c'8 c' c' c' }
  >>
}

\new Staff {
 \voices 1,3,4 <<
    { g''8 g''8 g'' g'' } \\
    { f'8 e' f' c' } \\
    { c'8 c' c' c' }
  >>
}

\new Staff {
 \voices 1,3,4 <<
    { g''8 g''8 g'' g'' } \\
    { f'8 e' f' \tweak NoteColumn.force-hshift 0 c' } \\
    { c'8 c' c' c' }
  >>
}

I'm not sure if the force-hshift tweak is the definitive way to do it, 
but it also helps in your example.


Lukas




Re: Getting voices to merge in a complex measure

2022-05-06 Thread Knute Snortum
Yes, exactly, but was just trying anything to see if it had any effect.
Brain storming.

On Fri, May 6, 2022, 4:45 PM David Kastrup  wrote:

> Knute Snortum  writes:
>
> > On Fri, May 6, 2022 at 4:22 PM Mark Stephen Mrotek 
> wrote:
> >>
> >> Knute,
> >>
> >> In an older version of Lilypond two merge commands were present:
> >> "different dotted" (that you used) and "different headed" (which
> >> might be helpful)
> >
> > Thanks Mark.  I did try \mergeDifferentlyHeadedOn but it didn't seem
> > to affect anything.
>
> Well, they aren't differently headed...
>
> --
> David Kastrup


RE: Getting voices to merge in a complex measure

2022-05-06 Thread Mark Stephen Mrotek
Knute,

I did also.
Could it be the result of the scaling? That is the notes, by Lilypond's view, 
are in different columns and therefore cannot be merged.

Mark

-Original Message-
From: Knute Snortum [mailto:ksnor...@gmail.com] 
Sent: Friday, May 6, 2022 4:29 PM
To: Mark Stephen Mrotek 
Cc: lilypond-user@gnu.org
Subject: Re: Getting voices to merge in a complex measure

On Fri, May 6, 2022 at 4:22 PM Mark Stephen Mrotek  wrote:
>
> Knute,
>
> In an older version of Lilypond two merge commands were present: 
> "different dotted" (that you used) and "different headed" (which might 
> be helpful)

Thanks Mark.  I did try \mergeDifferentlyHeadedOn but it didn't seem to affect 
anything.

--
Knute Snortum




Re: Getting voices to merge in a complex measure

2022-05-06 Thread David Kastrup
Knute Snortum  writes:

> On Fri, May 6, 2022 at 4:22 PM Mark Stephen Mrotek  
> wrote:
>>
>> Knute,
>>
>> In an older version of Lilypond two merge commands were present:
>> "different dotted" (that you used) and "different headed" (which
>> might be helpful)
>
> Thanks Mark.  I did try \mergeDifferentlyHeadedOn but it didn't seem
> to affect anything.

Well, they aren't differently headed...

-- 
David Kastrup



Re: Getting voices to merge in a complex measure

2022-05-06 Thread Knute Snortum
On Fri, May 6, 2022 at 4:22 PM Mark Stephen Mrotek  wrote:
>
> Knute,
>
> In an older version of Lilypond two merge commands were present: "different 
> dotted" (that you used) and "different headed" (which might be helpful)

Thanks Mark.  I did try \mergeDifferentlyHeadedOn but it didn't seem
to affect anything.

--
Knute Snortum



RE: Getting voices to merge in a complex measure

2022-05-06 Thread Mark Stephen Mrotek
Knute,

In an older version of Lilypond two merge commands were present: "different 
dotted" (that you used) and "different headed" (which might be helpful)

Mark

-Original Message-
From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] 
On Behalf Of Knute Snortum
Sent: Friday, May 6, 2022 "1:57 PM
To: lilypond-user@gnu.org
Subject: Getting voices to merge in a complex measure

Hello everyone,

I'm engraving Chopin's Prelude No. 1 in C and I'm having trouble getting two 
voices to merge.  It's the two lower d's in the last 16th of the measure.  I've 
attached the source code and a picture of what it looks like.  The second 
picture is how I would like it to look.  I have notes in the source code that 
document some of what I discovered fooling around with the notes.

Any help would be appreciated.

--
Knute Snortum




Getting voices to merge in a complex measure

2022-05-06 Thread Knute Snortum
Hello everyone,

I'm engraving Chopin's Prelude No. 1 in C and I'm having trouble
getting two voices to merge.  It's the two lower d's in the last 16th
of the measure.  I've attached the source code and a picture of what
it looks like.  The second picture is how I would like it to look.  I
have notes in the source code that document some of what I discovered
fooling around with the notes.

Any help would be appreciated.

--
Knute Snortum
\version "2.22.2"

staffUp   = \change Staff = "upper"
staffDown = \change Staff = "lower"

beamPositionsC = \once \override Beam.positions = #'(2.5 . -1)

rightHandUpper = \relative c' {
  \voiceOne
  \scaleDurations 2/3 {
% Change d16 to s16 and the other two d's in the rightHandLower 
% and leftHandUpper merge
r16 e a e'8 d16 |
  }
}

% Last two lower d's don't merge
rightHandLower = \relative c'' {
  \voiceThree
  \scaleDurations 2/3 {
s8. \beamPositionsC c16 a d, |
  }
}

% This way merges the last two lower d's, but looks odd
%{
rightHandLower = \relative c'' {
  \voiceFour
  \scaleDurations 2/3 {
s8. \staffUp c16 a d, |
  }
}
%}

rightHand = <<
  \clef treble
  \time 2/8
  \mergeDifferentlyDottedOn
  \new Voice \rightHandUpper
  \new Voice \rightHandLower
>>

leftHandUpper = \relative c' {
  \voiceFour
  \scaleDurations 2/3 {
s16 \staffUp e8.*4/3[ d16] |
  }
}

leftHandLower = \relative {
  \voiceFour
  \scaleDurations 2/3 { f,16 c' a' } r8 |
}

leftHand = <<
  \clef bass
  \time 2/8
  \mergeDifferentlyDottedOn
  \new Voice \leftHandUpper
  \new Voice \leftHandLower
>>

\score { 
  \new PianoStaff <<
\new Staff = "upper" \rightHand
\new Staff = "lower" \leftHand
  >>
}