lilypond-user
[Top][All Lists]
Advanced

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

Purity advice - long wrapped texts


From: Mark Knoop
Subject: Purity advice - long wrapped texts
Date: Mon, 23 Dec 2024 14:47:16 +0000
User-agent: mu4e 1.12.8; emacs 29.4

Hi list,

I'm looking for some advice from scheme experts with regard to writing pure 
functions. I've written a Grob and engraver (attached) for the purpose of 
setting long text instructions which should be wrapped over a section of music. 
Obviously the height of the resulting stencil will vary depending on the 
ultimate width of the spanner.

Thus I've added an unpure-pure container for the Y-extent callback. This is 
basically working, but any advice on how to improve the pure estimate would be 
greatly appreciated.

For now I'm simply using the difference of the paper-column ranks to give an 
indication of the horizontal length. This tends to estimate a larger height 
than is required (which is better than too small), but leads to some wasted 
vertical space.

Thanks,

Mark

Attachment: instructionMark.ily
Description: Binary data

--
Mark Knoop

reply via email to

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