lilypond-user
[Top][All Lists]
Advanced

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

Re: invisible rest that takes no horizontal space


From: Dmytro O. Redchuk
Subject: Re: invisible rest that takes no horizontal space
Date: Fri, 18 Jun 2010 16:19:01 +0300
User-agent: Mutt/1.5.20 (2009-06-14)

On Fri 18 Jun 2010, 14:57 Peter Van Kranenburg wrote:
> On 6/18/10 2:10 PM, Dmytro O. Redchuk wrote:
> >Looks like "<any_number>  <the_same_number>" would do.
> >
> 
> Only for meters like 4/4 or 2/2. Not for meters like 3/4 or 6/8.
> 
> So the question remains, how to set Timing.measurePosition to the
> value of Timing.measurelength.
I've found http://lsr.dsi.unimi.it/LSR/Snippet?id=333 and tried this:

%-------------8<-------------------------
stopThisMeasure = \applyContext
#(lambda (x)
  (ly:context-set-property!
    (ly:context-property-where-defined x 'measurePosition)
      'measurePosition
      (ly:context-property x 'measureLength)))

\relative c'' {
  \override Score.BarNumber #'break-visibility = #all-visible
  \time 3/4
  d4. e8 fis4 |
  d4 \stopThisMeasure
  \bar ":|:"
  fis2 g4 |
}
%-------------8<-------------------------

I actually don't understand how it works .) And whether it does at all .)

It seems it does what's you are looking for, but i am not sure.

Well, bar numbers increase but not shown, i would like to know how to
workaround this, but can not look for that any further now.

Hope, it will be useful for you,
and/or someone more knowledgeable will help you :-)

Sorry for the noise.

> 
> best,
> Peter
> 
> >Not tested at all, sorry .)

-- 
  Dmytro O. Redchuk



reply via email to

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