| [ << Contexts and engravers ] | [Top][Contents] | [ Education >> ] |
| [ < Definir un grabador en Scheme: grabador de ámbito o tesitura ] | [ Up: Contexts and engravers ] | [ Los grabadores, uno por uno > ] |
Mostrar un sistema GrandStaff completo si sigue con vida uno solo de sus pentagramas
En muchas partituras orquestales es costumbre no mostrar los
pentagramas de aquellos instrumentos que están en silencio durante
bastante tiempo; esto se llama ‘partitura francesa’. LilyPond
aporta esta funcionalidad a través de la instrucción
\RemoveEmptyStaves.
Cuando vuelven a sonar, con frecuencia se prefiere mostrar
todos los instrumentos del grupo. Esto se puede hacer
añadiendo el grabador Keep_alive_together_engraver al
contexto agrupador (p.ej.: un GrandStaff o un
StaffGroup).
En este ejemplo, los violines están en silencio durante el segundo sistema. Solo el violín primero suena en el último compás del tercer sistema, pero se muestra también el pentagrama del violín segundo.
\score { << \new Staff = "Staff_flute" \with { instrumentName = "Flute" shortInstrumentName = "Fl" } \relative c' { \repeat unfold 3 { c'4 c c c | c c c c | c c c c | \break } } \new StaffGroup = "StaffGroup_Strings" << \new GrandStaff = "GrandStaff_violins" << \new Staff = "StaffViolinI" \with { instrumentName = "Violin I" shortInstrumentName = "Vi I" } \relative c'' { a1 | R1*7 | \repeat unfold 12 a16 a4 | } \new Staff = "StaffViolinII" \with { instrumentName = "Violin II" shortInstrumentName = "Vi II" } \relative c' { e1 | R1*8 | } >> \new Staff = "Staff_cello" \with { instrumentName = "Cello" shortInstrumentName = "Ce" } \relative c { \clef bass \repeat unfold 9 { c1 } | } >> >> } \layout { indent = 3.0\cm short-indent = 1.5\cm \context { \GrandStaff \consists Keep_alive_together_engraver } \context { \Staff \RemoveEmptyStaves } }
| [ << Contexts and engravers ] | [Top][Contents] | [ Education >> ] |
| [ < Definir un grabador en Scheme: grabador de ámbito o tesitura ] | [ Up: Contexts and engravers ] | [ Los grabadores, uno por uno > ] |