Re: Proportional duration and cross-staff notation

2023-05-30 Thread Lib Lists
@Jean, thank you for your help. Leo is correct, I'm looking for
spacing based on the stems and not the noteheads (or maybe based on
different parts of the notehead).

@Leo, thank you, your example works very well (and it's much more
readable than mine!). The only problem is the shorter space at the end
of the bar. To solve it, I inverted your 'up' and 'down' definitions
that also grought the advantage of aligning with grid lines, but of
course I now get too little space at the beginning of the bar...

See attached picture with grid lines. Basically this would work, if
the space between the beginning of the bar and the first note was the
same as in the other notes.
Thank you all so far for your help!

For reference, here's the code for the attached picture:

#(ly:set-option 'crop #t)
\version "2.25.5"

up = { \change Staff = "up"  \stemDown \revert NoteColumn.X-offset }
down = { \change Staff = "down" \stemUp \temporary\override
NoteColumn.X-offset = #-1.2 }

\score {
  \new PianoStaff  <<

\new Staff = "up"  {
  \time 12/8
  \clef bass
  \new Voice { s1. s1. }
}

\new Staff = "down" {
  \override Beam.positions = #'( 6 . 6 )
  \clef bass
  \down b8[ c'  \up c' b]
  \down b8[  \up c' b]
  \down c'[  \up c']
  \down b8  \up c' b
   \down b8[ c'  \up c' b]
  \down b8[  \up c' b]
  \down c'[  \up c']
  \down b8  \up c' b
}

  >>

\layout {
  \context {
\Score
proportionalNotationDuration = #(ly:make-moment 1/8)
\override SpacingSpanner.uniform-stretching = ##t
\consists "Grid_line_span_engraver"
  }
  \context {
\Staff
\consists "Grid_point_engraver"
gridInterval = #(ly:make-moment 1/24)
\override Beam.positions = #'( 6 . 6 )
\override NoteSpacing.stem-spacing-correction = #-2

  }
}
}



On Tue, 30 May 2023 at 13:44, Leo Correia de Verdier
 wrote:
>
> But I have probably understood it wrong, because in that case I cannot see 
> what’s wrong with the default spacing...
>
> > 30 maj 2023 kl. 13:34 skrev Leo Correia de Verdier 
> > :
> >
> > I think what was asked for was for the proportional spacing to be done 
> > based on the stems position rather than the noteheads, with the result akin 
> > to this horrible hack:
> >
> > %
> >
> > up = { \change Staff = "up" \stemDown \temporary\override 
> > NoteColumn.X-offset = #1 }
> > down = { \change Staff = "down" \stemUp \revert NoteColumn.X-offset }
> >
> > \score {
> >  \new PianoStaff  <<
> >
> >\new Staff = "up"  {
> >  \time 12/8
> >  \clef bass
> >  \new Voice { s1. }
> >}
> >
> >\new Staff = "down" {
> >  \override Beam.positions = #'( 6 . 6 )
> >  \clef bass
> >  \stemUp b8[ c'  \up c' b]
> >  \down b8[  \up c' b]
> >  \down c'[  \up c']
> >  \down b8  \up c' b
> >}
> >
> >>>
> >
> > \layout {
> >  \context {
> >\Score
> >proportionalNotationDuration = #(ly:make-moment 1/12)
> >\override SpacingSpanner.uniform-stretching = ##t
> >  }
> > }}
> > 
> >
> >> 30 maj 2023 kl. 12:41 skrev Jean Abou Samra :
> >>
> >> Le lundi 29 mai 2023 à 10:45 +0200, Lib Lists a écrit :
> >>
> >>> Hello,
> >>>
> >>> I am trying to reproduce the notation used in Ligeti's 'Der 
> >>> Zauberlehrling' piano etude. See attached a fragment from the original 
> >>> and my attempt in Lilypond.
> >>>
> >>> Everything works fine, except that I cannot find a way to reproduce the 
> >>> proportional notation used by the original copist. It looks to me that 
> >>> the proportional spacing was made according to the stems and not the 
> >>> noteheads, because of the cross-staff notation (that's only partly true, 
> >>> as the first four notes seems to be have a slightly bigger gap between 
> >>> the second and third note, but that's a relatively minor detail).
> >>>
> >>> Here is my Lilypond file for the second bar of the original example. As 
> >>> you can see, I tried to use the tools for proportional notation, but 
> >>> without much success. Apologies for the long example, I thought this 
> >>> would be more helpful than a smaller one.
> >>>
> >>> Any help would be really appreciated.
> >>>
> >> With
> >>
> >> \layout {
> >>  \context {
> >>\Score
> >>proportionalNotationDuration = #(ly:make-moment 1/12)
> >>\override SpacingSpanner.uniform-stretching = ##t
> >>  }
> >> }
> >>
> >> it looks quite OK, doesn't it?
> >>
> >> Jean
> >>
> >
>


2305301447_LILYPOND_Der_Zauberlehrling_fragment_002.cropped.pdf
Description: Adobe PDF document


Re: Proportional duration and cross-staff notation

2023-05-30 Thread Leo Correia de Verdier
But I have probably understood it wrong, because in that case I cannot see 
what’s wrong with the default spacing...

> 30 maj 2023 kl. 13:34 skrev Leo Correia de Verdier 
> :
> 
> I think what was asked for was for the proportional spacing to be done based 
> on the stems position rather than the noteheads, with the result akin to this 
> horrible hack:
> 
> %
> 
> up = { \change Staff = "up" \stemDown \temporary\override NoteColumn.X-offset 
> = #1 }
> down = { \change Staff = "down" \stemUp \revert NoteColumn.X-offset }
> 
> \score {
>  \new PianoStaff  <<
> 
>\new Staff = "up"  {
>  \time 12/8
>  \clef bass
>  \new Voice { s1. }
>}
> 
>\new Staff = "down" {
>  \override Beam.positions = #'( 6 . 6 )
>  \clef bass
>  \stemUp b8[ c'  \up c' b]
>  \down b8[  \up c' b]
>  \down c'[  \up c']
>  \down b8  \up c' b
>}
> 
>>> 
> 
> \layout {
>  \context {
>\Score
>proportionalNotationDuration = #(ly:make-moment 1/12)
>\override SpacingSpanner.uniform-stretching = ##t
>  }
> }}
> 
> 
>> 30 maj 2023 kl. 12:41 skrev Jean Abou Samra :
>> 
>> Le lundi 29 mai 2023 à 10:45 +0200, Lib Lists a écrit :
>> 
>>> Hello,
>>> 
>>> I am trying to reproduce the notation used in Ligeti's 'Der Zauberlehrling' 
>>> piano etude. See attached a fragment from the original and my attempt in 
>>> Lilypond.
>>> 
>>> Everything works fine, except that I cannot find a way to reproduce the 
>>> proportional notation used by the original copist. It looks to me that the 
>>> proportional spacing was made according to the stems and not the noteheads, 
>>> because of the cross-staff notation (that's only partly true, as the first 
>>> four notes seems to be have a slightly bigger gap between the second and 
>>> third note, but that's a relatively minor detail).
>>> 
>>> Here is my Lilypond file for the second bar of the original example. As you 
>>> can see, I tried to use the tools for proportional notation, but without 
>>> much success. Apologies for the long example, I thought this would be more 
>>> helpful than a smaller one.
>>> 
>>> Any help would be really appreciated.
>>> 
>> With
>> 
>> \layout {
>>  \context {
>>\Score
>>proportionalNotationDuration = #(ly:make-moment 1/12)
>>\override SpacingSpanner.uniform-stretching = ##t
>>  }
>> }
>> 
>> it looks quite OK, doesn't it?
>> 
>> Jean
>> 
> 




Re: Proportional duration and cross-staff notation

2023-05-30 Thread Leo Correia de Verdier
I think what was asked for was for the proportional spacing to be done based on 
the stems position rather than the noteheads, with the result akin to this 
horrible hack:

%

up = { \change Staff = "up" \stemDown \temporary\override NoteColumn.X-offset = 
#1 }
down = { \change Staff = "down" \stemUp \revert NoteColumn.X-offset }

\score {
  \new PianoStaff  <<

\new Staff = "up"  {
  \time 12/8
  \clef bass
  \new Voice { s1. }
}

\new Staff = "down" {
  \override Beam.positions = #'( 6 . 6 )
  \clef bass
  \stemUp b8[ c'  \up c' b]
  \down b8[  \up c' b]
  \down c'[  \up c']
  \down b8  \up c' b
}

  >>

\layout {
  \context {
\Score
proportionalNotationDuration = #(ly:make-moment 1/12)
\override SpacingSpanner.uniform-stretching = ##t
  }
}}


> 30 maj 2023 kl. 12:41 skrev Jean Abou Samra :
> 
> Le lundi 29 mai 2023 à 10:45 +0200, Lib Lists a écrit :
> 
>> Hello,
>> 
>> I am trying to reproduce the notation used in Ligeti's 'Der Zauberlehrling' 
>> piano etude. See attached a fragment from the original and my attempt in 
>> Lilypond.
>> 
>> Everything works fine, except that I cannot find a way to reproduce the 
>> proportional notation used by the original copist. It looks to me that the 
>> proportional spacing was made according to the stems and not the noteheads, 
>> because of the cross-staff notation (that's only partly true, as the first 
>> four notes seems to be have a slightly bigger gap between the second and 
>> third note, but that's a relatively minor detail).
>> 
>> Here is my Lilypond file for the second bar of the original example. As you 
>> can see, I tried to use the tools for proportional notation, but without 
>> much success. Apologies for the long example, I thought this would be more 
>> helpful than a smaller one.
>> 
>> Any help would be really appreciated.
>> 
> With
> 
> \layout {
>   \context {
> \Score
> proportionalNotationDuration = #(ly:make-moment 1/12)
> \override SpacingSpanner.uniform-stretching = ##t
>   }
> }
> 
> it looks quite OK, doesn't it?
> 
> Jean
> 




Re: Proportional duration and cross-staff notation

2023-05-30 Thread Jean Abou Samra
Le lundi 29 mai 2023 à 10:45 +0200, Lib Lists a écrit :

> Hello,
>
> I am trying to reproduce the notation used in Ligeti's 'Der
> Zauberlehrling' piano etude. See attached a fragment from the original
> and my attempt in Lilypond.
>
> Everything works fine, except that I cannot find a way to reproduce
> the proportional notation used by the original copist. It looks to me
> that the proportional spacing was made according to the stems and not
> the noteheads, because of the cross-staff notation (that's only partly
> true, as the first four notes seems to be have a slightly bigger gap
> between the second and third note, but that's a relatively minor
> detail).
> 
> Here is my Lilypond file for the second bar of the original example.
> As you can see, I tried to use the tools for proportional notation,
> but without much success. Apologies for the long example, I thought
> this would be more helpful than a smaller one.
> 
> Any help would be really appreciated.

With


```
\layout {
  \context {
\Score
proportionalNotationDuration = #(ly:make-moment 1/12)
\override SpacingSpanner.uniform-stretching = ##t
  }
}
```

it looks quite OK, doesn't it?

Jean




signature.asc
Description: This is a digitally signed message part