lilypond-user
[Top][All Lists]
Advanced

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

Re: box around notes


From: Klaus Blum
Subject: Re: box around notes
Date: Sat, 17 Jan 2015 16:54:02 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi David,

one more big THANK YOU for your fast reply. Yes, it was very helpful.
I have updated music-boxer-stencil so that it works again with the boxEngraver. Finally I did some cleanup to my messy code in make-box.

Greetings from Germany,
Klaus


Am 16.01.2015 um 20:30 schrieb David Nalesnik:
Hi Klaus,

In the attached, I simply added new properties: acknowledge-finger-interface and acknowledge-script-interface.  In the engraver, I used ly:grob-property to read the setting.  You'll notice that if something is ignored it doesn't get pushed out of the way, though.

Adding properties like this would get cumbersome.  It would be nice to have a property which takes a flexible list of interfaces to include (over and above interfaces which need to be acknowledged, like note-column-interface).
 
If a box is split due to a line break, it would be cool to have those two
boxes open at the right/left side. For this, musicBoxerEngraver would need
to tell if a box is started/stopped by a line break instead of a manual
command.

This is not a problem.  I use the function ly:item-break-status on the spanner bounds to determine the state of "brokenness," then add in the left or right vertical only if that bound has a break-status of 0 (indicating an unbroken bound).

I tried to keep music-boxer-stencil and make-box separate.  In so doing, I had to add two more parameters to make-box.  (You may decide to merge the two functions in the end.)  

Hope this is helpful,

David

Attachment: boxer3.ly
Description: Text Data


reply via email to

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