Re: Aligning articulations/pedal marks vertically

2023-04-21 Thread Jean Abou Samra
Le vendredi 21 avril 2023 à 20:27 +0200, Jakob Pedersen a écrit :

>  Greetings!  
>
>  First time poster, long time (basic) lilypond user.  
>
>  I'm writing a hymn/chorale setting for organ. It's a basic piano staff with 
> two voice for each staff, and lyrics above system aligned with the soprano 
> line.  
>
>  I've added pedal marks, which looks something like this:  
>
> I think that's a little clumsy looking. I would prefer the pedal marks to be 
> aligned, like this:  
>
> (I aligned these by editing the PDF in Inkscape, which is entirely 
> unsatisfactory of course!)   
>
>  I've tried aligning them with tweaks, but that a bit fiddly and not 
> particularly accurate.  
>
>  Is there a more elegant solution to aligning the pedal marks?  


Perhaps try a callback like this:

```

\version "2.24.1"
\language "deutsch"

\score {
  \new PianoStaff <<
\new Staff = "venstre" <<
  \clef bass
  \new Voice = "tenor" {
\voiceOne << \relative c' {
  \key d \major \time 4/4 a h e, a } >>
  }
  \new Voice = "bas" { 
\voiceTwo << \relative c {
  \key d \major \time 4/4
  \override Script.Y-offset =
#(lambda (grob)
   (+ -6.0 (ly:self-alignment-interface::y-aligned-on-self grob)))
  \override Script.self-alignment-Y = #CENTER
  d\rtoe h\lheel a\ltoe a
  } >> }
>>
  >>
}
```

Y-offset sets the absolute position relative to the staff, and the 
self-alignment-interface correction is to align the centers of the scripts 
together (otherwise it aligns their reference points).

You will need to adjust the 6.0 value to your liking.

Best,

Jean



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


Aligning articulations/pedal marks vertically

2023-04-21 Thread Jakob Pedersen

Greetings!

First time poster, long time (basic) lilypond user.

I'm writing a hymn/chorale setting for organ. It's a basic piano staff 
with two voice for each staff, and lyrics above system aligned with the 
soprano line.


I've added pedal marks, which looks something like this:



I think that's a little clumsy looking. I would prefer the pedal marks 
to be aligned, like this:




(I aligned these by editing the PDF in Inkscape, which is entirely 
unsatisfactory of course!)


I've tried aligning them with tweaks, but that a bit fiddly and not 
particularly accurate.


Is there a more elegant solution to aligning the pedal marks?

\version "2.24.1"
\language "deutsch"

\score {
  \new PianoStaff <<
    \new Staff = "venstre" <<
  \clef bass
  \new Voice = "tenor" {
    \voiceOne << \relative c' {
  \key d \major \time 4/4 a h e, a } >> }
  \new Voice = "bas" {
    \voiceTwo << \relative c {\key d \major \time 4/4
  d\rtoe h\lheel a\ltoe a } >> }
    >>
  >>
}

Best wishes,

Jakob Pedersen

Re: How to control ties direction between chords

2023-04-21 Thread Volodymyr Prokopyuk
Thank you Brian and Willian for your working solution!

[image: image.png]
Thank you,
Vlad

On Fri, Apr 21, 2023 at 5:12 PM William Rehwinkel <
will...@williamrehwinkel.net> wrote:

> Dear Vlad,
>
> Inserting ^~ and _~ to the individual notes in the chord should work
> nicely, Like so.
>
> Thanks,
> -William
>
> \version "2.25.2"
>
> \relative {
>\clef treble
>\key c \major
>\time 4/4
><<
>  \new Voice = voiceOne \relative {
>\voiceOne
>4 8
>  }
>  \new Voice = voiceTwo \relative {
>\voiceTwo
>\autoBeamOff r8 8 8
>  }
>>>
> }
>
>
> On 4/21/23 10:47, Volodymyr Prokopyuk wrote:
> > Hi,
> >
> > How can I force the lower tie to be placed downward in the below code
> > snippet? I've tried \once \tieDown but with no luck.
> >
> > \version "2.25.3"
> >
> > \relative {
> >\clef treble
> >\key c \major
> >\time 4/4
> ><<
> >  \new Voice = voiceOne \relative {
> >\voiceOne
> >4~ 8
> >  }
> >  \new Voice = voiceTwo \relative {
> >\voiceTwo
> >\autoBeamOff r8 8 8
> >  }
> >>>
> > }
> >
> > image.png
> >
> >
> > Thank you in advance for your support,
> > Vlad
>
> --
> + --- +
> |   William Rehwinkel - Oberlin College and   |
> |  Conservatory '24   |
> |will...@williamrehwinkel.net |
> | PGP key:|
> | https://ftp.williamrehwinkel.net/pubkey.txt |
> + --- +
>


Re: How to control ties direction between chords

2023-04-21 Thread William Rehwinkel via LilyPond user discussion

Dear Vlad,

Inserting ^~ and _~ to the individual notes in the chord should work 
nicely, Like so.


Thanks,
-William

\version "2.25.2"

\relative {
  \clef treble
  \key c \major
  \time 4/4
  <<
\new Voice = voiceOne \relative {
  \voiceOne
  4 8
}
\new Voice = voiceTwo \relative {
  \voiceTwo
  \autoBeamOff r8 8 8
}
  >>
}


On 4/21/23 10:47, Volodymyr Prokopyuk wrote:

Hi,

How can I force the lower tie to be placed downward in the below code 
snippet? I've tried \once \tieDown but with no luck.


\version "2.25.3"

\relative {
   \clef treble
   \key c \major
   \time 4/4
   <<
     \new Voice = voiceOne \relative {
       \voiceOne
       4~ 8
     }
     \new Voice = voiceTwo \relative {
       \voiceTwo
       \autoBeamOff r8 8 8
     }
   >>
}

image.png


Thank you in advance for your support,
Vlad


--
+ --- +
|   William Rehwinkel - Oberlin College and   |
|  Conservatory '24   |
|will...@williamrehwinkel.net |
| PGP key:|
| https://ftp.williamrehwinkel.net/pubkey.txt |
+ --- +


OpenPGP_signature
Description: OpenPGP digital signature


How to control ties direction between chords

2023-04-21 Thread Volodymyr Prokopyuk
Hi,

How can I force the lower tie to be placed downward in the below code
snippet? I've tried \once \tieDown but with no luck.

\version "2.25.3"

\relative {
  \clef treble
  \key c \major
  \time 4/4
  <<
\new Voice = voiceOne \relative {
  \voiceOne
  4~ 8
}
\new Voice = voiceTwo \relative {
  \voiceTwo
  \autoBeamOff r8 8 8
}
  >>
}

[image: image.png]


Thank you in advance for your support,
Vlad


Re: Modal notation

2023-04-21 Thread Jean Abou Samra
Le vendredi 21 avril 2023 à 10:49 +, Werner LEMBERG a écrit :

> > 2. More seriously: if I don’t include a Lyrics line, all notes get
> > smushed together. 
>
> Yes, the horizontal spacing is problematic, and nobody works on it,
> alas.

Try

```
\layout {
  \override Score.SpacingSpanner.packed-spacing = ##f
  \override Score.SpacingSpanner.spacing-increment = 0.5
}
```

(adjust the 0.5 value)

> 3. Also: sometimes I want to set a small snippet where the exact
>    pitch is irrelevant, but removing the Clef_engraver doesn’t work:


Clefs live on staff level, VaticanaStaff in this case. Removing Clef_engraver 
from VaticanaVoice thus has no effect. Try

```
\new VaticanaStaff \with { \remove "Clef_engraver" } \new VaticanaVoice = 
"voice" \relative ...
```

Alternatively, use `\omit` as in Werner's reply.

Best,

Jean


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


Re: Modal notation

2023-04-21 Thread Werner LEMBERG

> 1. I’m not finding a symbol for a “plica”: single note with
>ascending or descending tail on both sides.  Does that exist?

Yes, see attached image, but there isn't an explicit command to access
it.  You have to use ligatures; look up the documentation for
`\deminutum`.

> 2. More seriously: if I don’t include a Lyrics line, all notes get
> smushed together. 

Yes, the horizontal spacing is problematic, and nobody works on it,
alas.

> 3. Also: sometimes I want to set a small snippet where the exact
>pitch is irrelevant, but removing the Clef_engraver doesn’t work:
>[...]

Maybe this?

```
\include "gregorian.ly"

\version "2.24.1"

\score { 
  <<
\new VaticanaVoice = "voice" \relative c' {
  \hide Staff.Clef
  \[ a2 \pes b4 \flexa a2 \]
  s8
  \[ a4 \pes b2 \]
  s8
  \[ b4 \flexa g2 \]
}
  >>

  \layout {
#(layout-set-staff-size 36)
line-width = 3\cm
ragged-last = ##f
\override SpacingSpanner.packed-spacing = ##f
  }
}
```


Werner


Werner




Modal notation

2023-04-21 Thread Victor Eijkhout
I’m trying to notate 1200-ish School of Notre Dame modal notation, and the 
Gregorian notation works out reasonably well.

1. I’m not finding a symbol for a “plica”: single note with ascending or 
descending tail on both sides. Does that exist?

2. More seriously: if I don’t include a Lyrics line, all notes get smushed 
together. 

3. Also: sometimes I want to set a small snippet where the exact pitch is 
irrelevant, but removing the Clef_engraver doesn’t work:

Advise? Thanks,

Victor.

Here’s a snippet:

\include "gregorian.ly"
%% #(ly:set-option 'crop #t)

voiceglobal = {  \omit Dots  \omit Tie  \time 3/4 }

  \score{
<<
\new VaticanaVoice = "voice" 
\with { \remove "Clef_engraver" }
\relative c' 
{
  \voiceglobal
  \key c \major
  \clef "vaticana-do2"
  \[ a2 \pes b4 \flexa a2 \]
  \[ a4 \pes b2 \]
  \[ b4 \flexa g2 \]
}
%%\new Lyrics \lyricsto "voice" {   Vi}
>>
\layout { #(layout-set-staff-size 36) }
}
\version "2.24.1"