• Willkommen im Forum „Archiviertes Lilypond Forum (2017)“.
 

Dies ist das Archiv des alten Forums (bis März 2017). Das aktuelle Forum ist unter lilypondforum.de zu finden.
This is the archive of the old forum (until March 2017). You can find the current forum at lilypondforum.de.

Hauptmenü

TimeSignature bei Zeilenumbruch

Begonnen von kilgore, Mittwoch, 17. November 2010, 10:47

Vorheriges Thema - Nächstes Thema

kilgore

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 }
>>

ding-dong

dazu verwendet man \override Staff.TimeSignature #'break-visibility = #end-of-line-invisible

kilgore

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 :)