Position of accidentals in chords

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Position of accidentals in chords

Caio Barros
Hello,

In the example below:

\relative c' {
  <c ges' beses d!>1
  <c! ges' beses d!>1  
}

Notice the difference in the position of the flat symbol in the G-flat. For me, particularly, I find the first chord much more clean: after the double flat, closet to the note (and it occupies less space). Is there a way to change the position of the flat symbol? I was unable to find it in the documentation. 

Also, I thought that Lilypond decided to move the flat further to the left because part of the natural sing in the C note would collide with it, but changing the size of the accidentals with somethin like

\override Accidental.font-size = #-3

Doesn't seem to make a difference.

Caio
Reply | Threaded
Open this post in threaded view
|

Re: Position of accidentals in chords

Owen Lamb
Hi Caio,

I'm not sure if there's a way to customize the coded order of accidentals, and for some reason tweaking the X-offset property doesn't seem to work either. In your case, making a couple of manual tweaks to the flat's and double-flat's extra-offset properties (which are added after all the positioning calculation is done) will at least get them in order. The only downside is that there's extra space between the accidentals and the barline, left over from calculating the accidentals' original positions. I'm not sure how to get rid of that...

\relative c' {
  <c ges' beses d!>1
  <c! \tweak Accidental.extra-offset #'(2.2 . 0) ges' \tweak Accidental.extra-offset #'(-0.6 . 0) beses d!>1 
}

Hope this helps,
Owen

On Wed, May 20, 2020 at 8:06 AM Caio Barros <[hidden email]> wrote:
Hello,

In the example below:

\relative c' {
  <c ges' beses d!>1
  <c! ges' beses d!>1  
}

Notice the difference in the position of the flat symbol in the G-flat. For me, particularly, I find the first chord much more clean: after the double flat, closet to the note (and it occupies less space). Is there a way to change the position of the flat symbol? I was unable to find it in the documentation. 

Also, I thought that Lilypond decided to move the flat further to the left because part of the natural sing in the C note would collide with it, but changing the size of the accidentals with somethin like

\override Accidental.font-size = #-3

Doesn't seem to make a difference.

Caio
Reply | Threaded
Open this post in threaded view
|

Re: Position of accidentals in chords

Caio Barros


Em qui., 21 de mai. de 2020 às 15:34, Owen Lamb <[hidden email]> escreveu:
Hi Caio,

I'm not sure if there's a way to customize the coded order of accidentals, and for some reason tweaking the X-offset property doesn't seem to work either. In your case, making a couple of manual tweaks to the flat's and double-flat's extra-offset properties (which are added after all the positioning calculation is done) will at least get them in order. The only downside is that there's extra space between the accidentals and the barline, left over from calculating the accidentals' original positions. I'm not sure how to get rid of that...

\relative c' {
  <c ges' beses d!>1
  <c! \tweak Accidental.extra-offset #'(2.2 . 0) ges' \tweak Accidental.extra-offset #'(-0.6 . 0) beses d!>1 
}

Hope this helps,

Thanks, man.
 
yeah, I was hoping there is some option to change the order of accidentals. The tweak is ok, but maybe not very practical in a very large piece. This exact chord did show up in a piece I'm transposing for a singer and in the end I chose to remove the natural sign from the low c, since it was actually just a cautionary accidental with not much probability of error by the pianist. This was most a theoretical question in case I need to do this in the future.

Caio