lilypond-devel
[Top][All Lists]
Advanced

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

Re: Suggestion: Keep original breaks


From: Urs Liska
Subject: Re: Suggestion: Keep original breaks
Date: Wed, 27 Nov 2013 16:32:16 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0

Am 27.11.2013 16:25, schrieb Carl Sorensen:
On 11/27/13 8:04 AM, "David Kastrup" <address@hidden> wrote:

Urs Liska <address@hidden> writes:


But also in this case I would come back and suggest including functions
like

originalBreak =
#(define-music-function (parser location)()
   ( #{ \tag #'keep-original-breaks \break #} ))

in LilyPond so they are available without having to put them in
private libraries.
No.  This is a special use case for a special, tool-bound workflow.  It
is totally valid to want the mechanisms in place for making it easy and
straightforward to implement this special use case.

But special use cases themselves belong in special include files.
Again, if LilyPond is lacking mechanisms for conveniently including
special-case include files, that is something worth fixing.
Would you be opposed to having a file original-breaks.ly that defined
originalBreak as part of the distribution?

We have a precedent of doing some of this already.  For example, we have
predefined-guitar-fretboards.ly, predefined-ukulele-fretboards.ly, and
predefined-mandolin-fretboards.ly that provide special use cases for the
predefined fretboard general case.

If the general case were added, and a special include were included, then
it seems like we'd have both David's wish for keeping things general and
Urs's wish for having an easily-used tool for the specific use case.

For me this sounds good.
Requiring to write \include "original-breaks.ly" is significantly better than requiring to define the commands. But it would still need a separate switch, presumably through the command line. Because such a file could only _define_ the commands, not _control_ them. If you think about commenting out the include to deactivate the feature it would make the used commands "unknown escape strings".

Urs



reply via email to

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