lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Empty Staff/TabStaff/StaffGroup creates indentation


From: Michael Gerdau
Subject: Empty Staff/TabStaff/StaffGroup creates indentation
Date: Mon, 28 Aug 2023 12:40:23 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0

Hi list,

I have code that creates lists of chords/fretboards. I want them
arranged in tabular mode. When I add an empty voice the first line gets
indented. When I comment the line "\guitarPart" it looks as expected.

See the following code (also attached). Is there a special incantation
or is this a bug?

- snip - snip - snip -
\version "2.25.7"

\include "predefined-guitar-fretboards.ly"

\paper {
  indent = 0
}

chordNames = \chordmode {
  c1 | d1 | e1 | f1 | g1 | a1 | b1 | \break
  c1 | d1 | e1 | f1 | g1 | a1 | b1 | \break
}

guitar = \relative c' {
}

chordsPart = <<
  \new ChordNames \chordNames
  \new FretBoards \chordNames
>>

guitarPart = \new StaffGroup <<
  \new Staff \with {
    midiInstrument = "electric guitar (clean)"
  } { \clef "treble_8" \guitar }
  \new TabStaff \with {
    stringTunings = #guitar-tuning
  } \guitar
>>

\score {
  <<
    \chordsPart
    \guitarPart
  >>
  \layout {
    \context {
      \Score
      \RemoveAllEmptyStaves
    }
  }
}
- snip - snip - snip -

--
 Michael Gerdau       email: mgdde@gmx.net
 GPG-keys available on request or at public keyserver

Attachment: chord-test.ly
Description: Text document

Attachment: chord-test.pdf
Description: Adobe PDF document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]