lilypond-user
[Top][All Lists]
Advanced

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

Re: Repeat bar line do not show in polymetric music


From: Thomas Morley
Subject: Re: Repeat bar line do not show in polymetric music
Date: Mon, 26 Aug 2013 01:46:56 +0200

2013/8/25 Gilberto Agostinho <address@hidden>:
>
>
>
> On Sun, Aug 25, 2013 at 11:22 PM, Thomas Morley <address@hidden>
> wrote:
>>
>> 2013/8/25 Gilberto Agostinho <address@hidden>:
>> > Hi all,
>> >
>> > I am working with some polymetric music (i.e., different time signatures
>> > for
>> > individual instruments), and obviously the bar lines will not always
>> > coincide. I am using the following snippet:
>> >
>> > \layout {
>> >   \context { \Score
>> >     \remove "Timing_translator"
>> >     \remove "Time_signature_engraver"
>> >     \remove "Default_bar_line_engraver"
>> >   }
>> >   \context { \Staff
>> >     \consists "Timing_translator"
>> >     \consists "Time_signature_engraver"
>> >     \consists "Default_bar_line_engraver"
>> > }
>> >
>> > Everything now works fine, except for the bar line engraver... if I try
>> > to
>> > add repeat bar lines, they will not appear in the final score! Not only
>> > that, but actually there will be NO bar lines at all on those points!
>> > Here
>> > is a complete example:
>> >
>> > \version "2.17.24"
>> > A =  {
>> >   \time 2/4
>> >   c'4 e' \bar ".|:" g' c'' \bar ":|." e'' g'' \bar "|."
>> > }
>> > B = {
>> >   \time 3/4
>> >   c''4 g' e' \bar "||" c' g c' \bar "|."
>> > }
>> > \score {
>> >   <<
>> >     \new Staff \A
>> >     \new Staff \B
>> >   >>
>> >   \layout {
>> >     \context { \Score
>> >         \remove "Timing_translator"
>> >         \remove "Time_signature_engraver"
>> >         \remove "Default_bar_line_engraver"
>> >     }
>> >     \context { \Staff
>> >         \consists "Timing_translator"
>> >         \consists "Time_signature_engraver"
>> >         \consists "Default_bar_line_engraver"
>> >     }
>> >   }
>> > }
>> >
>> > Note how NO bar lines are shown on staff A. If we remove the /bar "|:"
>> > and
>> > /bar ":|" from A, then we have the simple bar lines as expected.
>> >
>> > I have found a possible solution for this problem, although I still do
>> > not
>> > understand why the code in the question above doesn't work properly. The
>> > solution consists of exchanging all the following commands:
>> >
>> > \bar "|:", \bar ":| and \bar ":|:
>> >
>> > for:
>> >
>> > \bar ".|:", \bar ":|." and \bar ":|.|:
>> >
>> > This solution works very well for the "start repeat bar line" and for
>> > the
>> > "stop repeat bar line", but the "stop and start repeat bat line" (the
>> > 3rd
>> > one in the list above) is not in the same style as the default one.
>> >
>> > Also, if I use any /repeat volta n {music}, the repeat bar lines do NOT
>> > show
>> > automatically...
>> >
>> > Any suggestions on how to solve this?! Thanks a lot!
>> > Gilberto
>> >
>> > _______________________________________________
>> > lilypond-user mailing list
>> > address@hidden
>> > https://lists.gnu.org/mailman/listinfo/lilypond-user
>> >
>>
>> Hi Gilberto,
>>
>> the barline-interface has been changed quite heavily with 2.17.
>> Please reread
>> http://lilypond.org/doc/v2.17/Documentation/notation/bars#bar-lines
>> and shout again, if the problem persists.
>>
>> If you rework a 2.16-file you should use convert-ly.
>>
>> Cheers,
>>   Harm
>
>
> Hi Thomas,
>
> Thank you very much for your answer, I didn't realize that the bar line
> interface was changed. Now I do understand why the bar lines were not
> appearing. But even after reading the page you recommended me, I still could
> not make the automatic repeat bar lines appear after \repeat volta 2
> {music}; it shows only simple bar lines and I have to manually add bars such
> as ".|:", ":..:" and ":|.".
>
> Can anyone help me to figure this out? By the way, it only happens when I
> use that snippet in the layout:
>
> \layout {
>
>   \context { \Score
>
>     \remove "Timing_translator"
>
>     \remove "Time_signature_engraver"
>
>     \remove "Default_bar_line_engraver"
>
> }
>
>   \context { \Staff
>
>     \consists "Timing_translator"
>
>     \consists "Time_signature_engraver"
>
>     \consists "Default_bar_line_engraver"
>
> }
>
>
> Thanks a lot!
>
> Gilberto

Hi Gilberto,

I boiled it down to the following code:

myLayout =
\layout {
  \context { \Score
      \remove "Timing_translator"
      \remove "Default_bar_line_engraver"
  }
  \context { \Staff
      \consists "Timing_translator"
      \consists "Default_bar_line_engraver"
  }
}

\layout { \myLayout }

{ c'1 \repeat volta 2 { d' } e' }


_No_ repeat-bar-lines are printed. Tested with 2.17.24, 2.16.2, 2.14.2
and 2.12.3
>From the tested version it is clear that it has nothing to do with the
changed bar-line-interace.

As soon as the "Default_bar_line_engraver" is removed from the
Score-context things goes bad using
\repeat volta x { ... }
My knowledge of LilyPonds internals is not deep enough, so I've no
clue how to make it work other, than inserting manuel \bar ...

For me, it looks like a bug.
Though I didn't found any related on the tracker.


Sorry to be of not more help,
  Harm



reply via email to

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