Hi LilyPonders,

unfortunately I'm not able to create a minimal example which reproduces the problem. Find attached a simplified version of my file.

The problem is in bar 20.
If you comment the line starting with \hideNotes, then the repeat bar is printed once instead of twice. This is a specific problem of layout: lilypond has not added a bar, in fact the MIDI plays correctly.

I guess I'm missing something, but I can't find it.
Could you please help me?

Thanks,
Federico
\version "2.15.36"

global = {
  \time 4/4
  \key d \major
  \set Staff.midiInstrument = #"acoustic guitar (steel)"
  \set fingeringOrientations = #'(left)
  \set TabStaff.stringTunings = #guitar-open-d-tuning
  \hideSplitTiedTabNotes
}


first=  \relative c' {

  %% 1  
  \hideNotes \grace { d8\2\glissando } \unHideNotes d4.\2  des4  a4. |
  \hideNotes \grace { b8\3\glissando } \unHideNotes b4.\3  a4\3  fis4. |
  a4.  fis8 ( a\3 )  a4  fis8 ~ |
  fis4.  d'4  a4. |

  %% 5
  \hideNotes \grace { d8\2\glissando } \unHideNotes d4.\2  des4  a4. |
  \hideNotes \grace { b8\3\glissando } \unHideNotes b4.\3  a4\3  fis4. |
  a4.  fis8 ( a\3 )  a4  fis8 ~ |
  fis4.  d'4  a4. |

  %% 9
  \repeat volta 3 {
    < g a >8\arpeggio ( b4 )  d4  b4. |
    a4.  d4  des4. |
  }

  \alternative {
    { d4.  d4  a4.  |
      \hideNotes \grace { g'\glissando } \unHideNotes a4.  a4  d,4. | }
  
  %% 13
    { d4.  d4  a8  fis ( g ) |
      fis4.  d'4  a4. |  }
    { d4.  d4  a4.  |
      \hideNotes \grace { g'\glissando } \unHideNotes a4.  a4  d,4. | }
    }

  %% 17
  < g, a >8\arpeggio ( b4 )  a4  fis4. |
  s4.  a4\3  a  fis8 ~ |
  fis8  a4  fis  a  fis8 ~ |

  \repeat volta 4 {
    fis4.\repeatTie a'4  d,4  fis,8 ~ |
  
  %% 21
    fis4.  a'4  d,4. |
  }
}



second =  \relative c {

  %% 1
  d,4  d'  d,  d' |
  d,4  d'  d,  d' |
  d,4  d'  a   e' |
  d,4  d'  d,  d' |
  
  %% 5
  d,4  d'  d,  d' |
  d,4  d'  d,  d' |
  d,4  d'  a   e' |
  d,4  d'  d,  d' |
  
  %% 9
  \repeat volta 3 {
  b4  d  b  d |
  a4  e'  a,  e' |
  }
  \alternative {
    { d,4  d'  d,  d' | d,4  d'  d,  d' | }
  %% 13
    { d,4  d'  d,  d' | d,4  d'  d,  d' | }
    { d,4  d'  d,  d' | d,4  d'  d,  d' | }
  }
  
  %% 17
  b4  d  b  d |
  a4  e'  a,  e' |
  a,4  e'  a,  e' |
  \repeat volta 4 {
    % if you comment the line below, no extra repeat opening bar is printed
    \hideNotes \grace { d8\5\glissando } \unHideNotes
    fis4\5  d  fis\5  d |
  %% 21
    fis4\5  d  fis\5  d |
  }
}

music = {
\new StaffGroup <<
    \new Staff = "guitar" <<
      \global
      \context Voice = "first voice" { \clef "G_8" \voiceOne  \first }
      \context Voice = "second voice" { \clef "G_8" \voiceTwo  \second }
    >>
    \new TabStaff = "tab" <<
      \global
      \hideSplitTiedTabNotes
      \context TabVoice = "tab first voice" { \clef "moderntab" \voiceOne \first }
      \context TabVoice = "tab second voice" { \clef "moderntab" \voiceTwo \second }
    >>
  >>
}

\score {
  \music
  \layout {
    indent = #0
    system-count = #5
    \context {
      \Score
      \override Glissando #'minimum-length = #4
      \override Glissando #'springs-and-rods =
                          #ly:spanner::set-spacing-rods
      \override Glissando #'thickness = #2
    }
  }
  \midi{ \tempo 4 = 180 }
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to