[Top][All Lists]

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

Re: grob::rhythmic-location and \set Score.currentBarNumber

From: Davide Liessi
Subject: Re: grob::rhythmic-location and \set Score.currentBarNumber
Date: Thu, 3 Oct 2019 21:07:26 +0200

What about introducing a new grob property containing the _printed_
bar number and the measure position?
Unless, of course, there is already a way to retrieve the desired information.

With the attached patch, the input file

\version "2.19.82"
  \override Score.BarNumber.break-visibility = ##(#t #t #t)
  \override NoteHead.after-line-breaking =
  #(lambda (grob)
     (ly:message "Internal location: ~a" (grob::rhythmic-location grob))
     (ly:message "Printed location: ~a" (grob::printed-rhythmic-location grob)))
  \set Score.currentBarNumber = 12

has the following output:

Internal location: (1 . #<Mom 0>)
Printed location: (1 . #<Mom 0>)
Internal location: (2 . #<Mom 0>)
Printed location: (12 . #<Mom 0>)

Best wishes.

Attachment: 0001-Add-printed-rhythmic-location-grob-property.patch
Description: Text Data

reply via email to

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