Re: clefs, time signatures, and key signatures

2023-12-22 Thread Werner LEMBERG


> does the new proposed spacing mean that the time signatures are not
> aligned across staves any more but were before?

No, they are aligned as before.


Werner



Re: clefs, time signatures, and key signatures

2023-12-22 Thread Michael Dietz

Hi Werner,

does the new proposed spacing mean that the time signatures are not 
aligned across staves any more but were before?


Best,
Michael



Re: right indent once, horizontal space

2023-12-22 Thread Cordelia
I did see that, but I found it very complicated as exemple..
Yes, it’s what I wanted.



> On 22 Dec 2023, at 16:30, Leo Correia de Verdier 
>  wrote:
> 
> Does this do what you want or do you want the staff to go on after the bar 
> line?
> 
> Indenting individual systems
> di.unimi.it
> 
>  Indenting individual systems 
> 
> di.unimi.it  
> 
> 
>> 22 dec. 2023 kl. 15:47 skrev Cordelia :
>> 
>> Thank you, yes this works if the measure is the last one.
>> For exemple in your exemple, I’d need the second staff to have a right 
>> indent.
>> 
>>> On 22 Dec 2023, at 15:29, Werner LEMBERG  wrote:
>>> 
>>> 
 is it possible to add after a bar and before a break some horizontal
 space only for a particular system ?
>>> 
>>> Try the `ragged-last` paper variable.
>>> 
>>> Example:
>>> 
>>> ```
>>> \score {
>>> { \repeat unfold 60 c'4 }
>>> \layout {
>>>   ragged-last = ##t
>>> }
>>> }
>>> 
>>> \score {
>>> { \repeat unfold 60 d'4 }
>>> \layout {
>>>   ragged-last = ##t
>>> }
>>> }
>>> ```
>>> 
>>> 
>>>   Werner
>>> 
>> 
>> 



Re: right indent once, horizontal space

2023-12-22 Thread Werner LEMBERG

> Thank you, yes this works if the measure is the last one.  For
> exemple in your exemple, I’d need the second staff to have a right
> indent.

Simply split your music into two scores.  You can adjust the distance
between the last line of a score and the first line of the next score
with the paper variable `score-system-spacing`.

Everything else gets quickly much more complicated – I'm not sure
whether it is solvable at all in the general case, since there are not
many possibilities to manipulate LilyPond's layout mechanism.


Werner


Re: right indent once, horizontal space

2023-12-22 Thread Leo Correia de Verdier
Does this do what you want or do you want the staff to go on after the bar line?Indenting individual systemsdi.unimi.it22 dec. 2023 kl. 15:47 skrev Cordelia :Thank you, yes this works if the measure is the last one.For exemple in your exemple, I’d need the second staff to have a right indent.On 22 Dec 2023, at 15:29, Werner LEMBERG  wrote:is it possible to add after a bar and before a break some horizontalspace only for a particular system ?Try the `ragged-last` paper variable.Example:```\score { { \repeat unfold 60 c'4 } \layout {   ragged-last = ##t }}\score { { \repeat unfold 60 d'4 } \layout {   ragged-last = ##t }}```   Werner

Re: right indent once, horizontal space

2023-12-22 Thread Cordelia
Thank you, yes this works if the measure is the last one.
For exemple in your exemple, I’d need the second staff to have a right indent.

> On 22 Dec 2023, at 15:29, Werner LEMBERG  wrote:
> 
> 
>> is it possible to add after a bar and before a break some horizontal
>> space only for a particular system ?
> 
> Try the `ragged-last` paper variable.
> 
> Example:
> 
> ```
> \score {
>  { \repeat unfold 60 c'4 }
>  \layout {
>ragged-last = ##t
>  }
> }
> 
> \score {
>  { \repeat unfold 60 d'4 }
>  \layout {
>ragged-last = ##t
>  }
> }
> ```
> 
> 
>Werner
> 




Re: right indent once, horizontal space

2023-12-22 Thread Werner LEMBERG

> is it possible to add after a bar and before a break some horizontal
> space only for a particular system ?

Try the `ragged-last` paper variable.

Example:

```
\score {
  { \repeat unfold 60 c'4 }
  \layout {
ragged-last = ##t
  }
}

\score {
  { \repeat unfold 60 d'4 }
  \layout {
ragged-last = ##t
  }
}
```


Werner


right indent once, horizontal space

2023-12-22 Thread Cordelia
Hello,

is it possible to add after a bar and before a break some horizontal space only 
for a particular system ?
Thank you,
cordelia

visual example:



horizontal spacing issue with `keyCancellation`

2023-12-22 Thread Werner LEMBERG

Consider this snippet.

```tex
cancellationFirst =
\override Score.BreakAlignment.break-align-orders =
  #(grob-transformer 'break-align-orders
 (lambda (grob orig)
   (let ((vec (vector-copy orig))
 (middle '(key-cancellation
   staff-bar
   key-signature)))
 (vector-set! vec 1 middle)
 vec)))

music = { \key ces \major ces'1 \bar "||"
  \key cis \major cis'1 }

{ <>^\markup "default"
  \music }

{ <>^\markup "cancellationFirst"
  \cancellationFirst
  \music }
```

As can be seen in the image, flipping the order of the bar line and
the key cancellation changes the horizontal spacing between the
`NoteHead` and `NonMusicalPaperColumn` grobs in a bad way.  Why does
this happen, and how can I avoid this?

The third line shows the same without a bar line, where the spacing is
just fine.


Werner