Deutsches Lilypond Forum (Archiv)
Allgemein => Fragen zu Funktionen => Thema gestartet von: kilgore am Mittwoch, 17. November 2010, 10:47
-
Hallo Lilys!
Hier eine für mich rätselhaftes Problem. Die Idee ist so: Taktangabe solle nur in der oberste Stimmt sichtbar sein. Allerdings kommt es vor, dass die oberste Stimme nicht immer gleich ist weil es wegen "RemoveEmptyStaffContent" entfernt wird. Da kann ich die Taktangabe in der neue oberste Stimme setzten, aber ich möchte es am Zeilenende unsichtbar haben.
Ideen?
\version "2.12.3"
\layout {
\context {
\RemoveEmptyStaffContext
}
}
one = \relative c' {
\set Staff.instrumentName = "1"
\set Staff.shortInstrumentName = "1"
c1 c1 c1 c1 c1
\break
\time 5/4
R4*5*5
}
two = \relative c' {
\set Staff.instrumentName = "2"
\set Staff.shortInstrumentName = "2"
\override Staff.TimeSignature #'transparent = ##t
c1 c1 c1 c1 c1
\once \override Staff.TimeSignature #'transparent = ##f
\time 5/4
c1~c4
c1~c4
c1~c4
c1~c4
c1~c4
}
three = \relative c' {
\set Staff.instrumentName = "3"
\set Staff.shortInstrumentName = "3"
\override Staff.TimeSignature #'transparent = ##t
c1 c1 c1 c1 c1
\time 5/4
c1~c4
c1~c4
c1~c4
c1~c4
c1~c4
}
<<
\new Staff { \one }
\new Staff { \two }
\new Staff { \three }
>>
-
dazu verwendet man
\override Staff.TimeSignature #'break-visibility = #end-of-line-invisible
-
arrgh! Das Befehl kenn ich doch :P Ich habe immer versucht:
\override Staff.TimeSignature #'break-visibility = ##f
und habe mich gefragt wieso es nicht geht!
Danke ding dong :)