lilypond-es
[Top][All Lists]
Advanced

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

Re: Cómo mantener llave de sistema con stopStaff


From: Francisco Vila
Subject: Re: Cómo mantener llave de sistema con stopStaff
Date: Wed, 26 Apr 2023 16:29:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

El 26/4/23 a las 3:10, Carlos Cansino Pérez escribió:
\score {
\new StaffGroup { <<
\new Staff { \relative c' {
c4 d e f g f e d \break
c d e f g f e d
} }
\new Staff { \relative c' {
c4 d e8 e f4 \stopStaff s1
s1 \startStaff g4 f e8 e d4 } }
>>  } }

Puedes pintarlo de blanco en lugar de hacerlo desaparecer, de esa forma la llave del sistema se imprime normalmente.

\score {
  \new StaffGroup {
    <<
      \new Staff { \relative c' {
        c4 d e f g f e d \break
        c d e f g f e d
      } }
      \new Staff { \relative c' {
        c4 d e8 e f4
        \override Staff.StaffSymbol.color = #(x11-color 'White)
        \stopStaff \startStaff
        s1 s1
        \revert Staff.StaffSymbol.color
        \stopStaff \startStaff
        g4 f e8 e d4 } }
    >>
  }
}

%%%%%%%%%%

Las instrucciones  \stopStaff \startStaff seguidas hacen que el contexto se reinicie y tenga efecto el cambio de color.


Saludos


-- 
Francisco Vila, Ph.D. - Badajoz (Spain)

reply via email to

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