Deutschsprachiges LilyPond Forum

Allgemeine Fragen und Probleme => Fragen und Probleme aller Art => Thema gestartet von: bekuba am Montag, 22. Juni 2020, 11:06

Titel: Taktstrich am Anfang der Zeile bei RhythmicStaff
Beitrag von: bekuba am Montag, 22. Juni 2020, 11:06
Guten Tag,

ich möchte Leadsheets mit Rhythmus + Akkorden erstellen. Das klappt auch gut.
Das Problem:
Wie kann man am Anfang jeder Zeile einen einfache Taktstrich(wie im Anhang dargestellt) erzeugen?
Titel: Antw:Taktstrich am Anfang der Zeile bei RhythmicStaff
Beitrag von: harm6 am Montag, 22. Juni 2020, 23:33
Hallo bekuba,

willkommen im Forum.

Meinst Du sowas:


\version "2.20.0"

#(define-bar-line "|" "|" "|" "|" )
#(define-bar-line ":|." ":|." "|" " |.")

\paper { indent = 0 }

\layout {
  \context {
  \Staff
  \override TimeSignature.space-alist.clef = #'(fixed-space . 0)
  %% probably
  \omit TimeSignature
  }
  \context {
  \Score
    \override BreakAlignment.break-align-orders =
      #(make-vector 3 '(left-edge
                        staff-bar
                        cue-end-clef
                        ambitus
                        breathing-sign
                        time-signature
                        clef
                        cue-clef
                        key-cancellation
                        key-signature
                        custos))
    %% probably
    \omit BarNumber
  }
}

\new RhythmicStaff
  {
  \bar "|"
  R1
  \break
  \repeat volta 2 R1
  \break
  R1
  \break
  R1
  }


Gruß,
  Harm
Titel: Antw:Taktstrich am Anfang der Zeile bei RhythmicStaff
Beitrag von: bekuba am Dienstag, 23. Juni 2020, 13:10
Hallo Harm,
ich bin begeistert!! So schnell hätte ich mit einer Lösung nicht gerechnet. Und dann noch genau das was ich brauche. Ich habe es bei mir eingearbeitet und es funktioniert.
Vielen Dank!!!  :)

Beste Grüße
bekuba