lilypond-user
[Top][All Lists]
Advanced

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

Re: Bar number after line break with time signature change


From: Frank Steinmetzger
Subject: Re: Bar number after line break with time signature change
Date: Sun, 25 Oct 2009 20:04:52 +0100
User-agent: KMail/1.9.10

Am Sonntag, 25. Oktober 2009 schrieb Neil Puttock:

> 2009/10/23 Frank Steinmetzger <address@hidden>:
> > Hi there,
> >
> > I've entered a Distler piece with lots of different time signatures. Now
> > that I'm finished and doublechecked with the original, I was about to
> > commit it to my choir, when I noticed that there were no visible bar
> > numbers.
>
> I'm guessing you've moved the Timing_translator to the Staff context
> so you can have independent time signatures.

Indeed.

> If so, you won't get any bar numbers unless you also move the
> Bar_number_engraver, since it can't see the context properties which the
> Timing_translator maintains (e.g., currentBarNumber and measurePosition).

Sounds logical. Thanks for the help. For the archive I quote the full code:

\score {
  \relative c' <<
    \new Staff \with { \consists "Bar_number_engraver" } {
      c4 d e f \break
      g4 a b c
    }
    \new Staff {
      \time 3/4
      c,4 d e4
      f4 \bar "" g a
      \time 2/4
      b4 c
    }
  >>
  \layout {
    \context {
      \Score
      \remove "Timing_translator"
      \remove "Default_bar_line_engraver"
      \remove "Bar_number_engraver"
    }
    \context {
      \Staff
      \consists "Timing_translator"
      \consists "Default_bar_line_engraver"
    }
  }
}

I believe it should be prudent to add this information to the snippet, because 
everyone who finds and uses it will run into this (unless (s)he knows it 
already).
-- 
Gruß | Greetings | Qapla' - http://www.stud.tu-ilmenau.de/~frst-ii/ - EDOB
Nicht von Staat und Konzernen ausschnüffeln lassen, E-Mails verschlüsseln!
http://de.wikipedia.org/wiki/GNU_Privacy_Guard  http://hp.kairaven.de/pgp/

Es ist ein hartes Los, eine Niete zu sein.

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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