lilypond-user
[Top][All Lists]
Advanced

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

Re: "Collect" barnumbers for line and page breaks


From: Urs Liska
Subject: Re: "Collect" barnumbers for line and page breaks
Date: Sat, 10 Jan 2015 21:06:47 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Hi David,

thank you for that suggestion.
I'll try to get my mind around this ASAP.
On the first sight I don't understand too much of it. But at least I notice that I'm not afraid of these lambda, let and let* constructs anymore. Finally I'm getting *somewhere* to familiarity with the basic working of Scheme code. What I'm still at a major loss is how Scheme interacts with LilyPond specific functionality. There's really a need for education in that sector.

Best
Urs

Am 10.01.2015 um 20:50 schrieb David Nalesnik:


On Sat, Jan 10, 2015 at 1:39 PM, David Nalesnik <address@hidden> wrote:


 \version "2.19.15"

writeBreaksEngraver =
#(lambda (context)
   (let ((out (open-output-file "output.txt")))
     (make-engraver
      (listeners
       ((line-break-event engraver event)
        (let* ((ccc (ly:context-property context 'currentCommandColumn))

ccc is not used here

It's left over from my attempts to query the NonMusicalPaperColumn grobs in the piece for "break-status" (0 = unbroken, -1 = end-of-line, 1 = beginning-of-line), but break-status always comes back 0.  Try (ly:item-break-dir ccc) to see what I mean.  The conclusion I draw is that useful information about paper columns has not been set when our engraver is operational.

David
 


reply via email to

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