[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DynamicText.extra-spacing-width in StaffGroups and similar

From: Jean Abou Samra
Subject: Re: DynamicText.extra-spacing-width in StaffGroups and similar
Date: Sun, 19 Jun 2022 00:08:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

Le 18/06/2022 à 23:59, Simon Albrecht a écrit :
Hello everyone,

it seems that some unorthodox elements in my style sheets tend to unearth issues.

StaffGroup and similar contexts set DynamicText.extra-spacing-width to #f, I guess with Dynamics contexts in mind (?). The following example shows that in the absence of Dynamic_align_engraver, this setting becomes falsely applied to Staff contexts within.

I suppose it should be ensured some other way that this doesn’t carry over. (with an override in the definition for Voice contexts or Staff contexts?)

\version "2.23.9"

\layout {
  \context {
    \remove "Dynamic_align_engraver"
    %\override DynamicText.extra-spacing-width = #'(+inf.0 . -inf.0)

sOne = {
  \repeat unfold 40 c'4

\paper {
  system-count = 1

\score {
  \new StaffGroup

(Nevermind the nonsensical vertical placement of the dynamic in this tiny example.)

The point of this override is to avoid placing dynamics over span bars. With the general default of '(+inf.0 . -inf.0), they are mostly ignored in the horizontal spacing problem, which causes problems with things like

\version "2.23.9"

\new StaffGroup <<
  \new Staff \with {
    \override DynamicText.extra-spacing-width = #'(+inf.0 . -inf.0)
  } { c'8 8 8 8 8 8 8 8_\ppp }
  \new Staff { c'1 }

So this override shouldn't be specific to Dynamics in StaffGroup.

For discussion of the problems this override causes, see



reply via email to

[Prev in Thread] Current Thread [Next in Thread]