• 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ü

Problem mit Taktstrich-Versetzung

Begonnen von chf, Montag, 19. Januar 2015, 17:59

Vorheriges Thema - Nächstes Thema

chf

Liebe Freunde,

am Anfang der Zeile steht ein Wiederholungszeichen, das ich ein wenig nach links verschieben will. Der Takstrich am Ende der vorherigen Zeile rückt natürlich dabei natürlich mit. Wie kann ich das verhindern?
Es geht um eine fünfstimmige Partitur, sonst könnte ich ja die Note verrücken...

Gruß
chf

harm6

Hallo Christa,

versuch mal:


\version "2.18.0"

tv = #(define-music-function (parser location hor ) ( number? )
  #{
          \once\override Score.BarLine #'extra-offset = #(cons hor 0)
          \once\override Score.SpanBar #'extra-offset = #(cons hor 0)
  #})
 
\relative c'' {
  \partial 2 r8 b'\upbow\p (cis e
  dis2~ dis8) gis, (a cis
  b2~b8) e, (fis a gis
  b, cis fis) e4--^\markup \italic "rit." dis--
  \tv #'-.7 \bar "||"
 
  \once \override Score.MetronomeMark #'extra-offset = #'(-.5 . .7)
  \tempo \markup \fontsize #1.5 "Allegro con moto" 2 = 80
  e-- r8 gis-.\upbow\mf b2~
  \break
  \once \override Staff.BarLine.after-line-breaking =
     #(lambda (grob)
        (if (and (ly:item? grob) (= (ly:item-break-dir grob) RIGHT))
            (ly:grob-set-property! grob 'extra-offset '(-0.5 . 0))))
  \bar ".|:"
  b8 r r fis-. b2~
  b8 r e,4\< (fis a\!)
}


Die Übertragung auf SpanBar sollte kein Problem sein.

HTH,
  Harm

Vielleicht sollte ich mal versuchen das Ganze als verallgemeinerte Funktion zu setzen, 'alterBroken' (für Spanner) gibts ja schon...

chf