Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-21 Thread David Nalesnik
David, This use of \default for skipping optional arguments even in end position may appear a bit contrived. However, \key \default and \mark \default existed (hardwired in the parser) even before music functions ever heard of optional arguments, so I consider it an accomplishment to have

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-20 Thread David Nalesnik
David, On Fri, Jul 20, 2012 at 12:38 AM, David Kastrup d...@gnu.org wrote: David Nalesnik david.nales...@gmail.com writes: David, Why does this have to be a list? Why not just make it two separate arguments? If, for whatever reason, you really really really have

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-20 Thread David Kastrup
David Nalesnik david.nales...@gmail.com writes: An optional argument can be skipped only if there is some place in the argument list where it can go.  So in final position, optional arguments are indistinguishable from mandatory arguments (actually not quite, since they make

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-20 Thread David Kastrup
David Nalesnik david.nales...@gmail.com writes: scheme? always returns #t.  At the current point of time, the only argument predicates specially coded into the parser are ly:pitch? and ly:duration? so they don't mix with scheme? syntactically.  This will at some point of time

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-20 Thread david . nalesnik
2012/7/18 Janek Warchoł janek.lilyp...@gmail.com: (however, it would be even more awesome if it was one general function for all purposes ;) ) Considering this some more, I think it's best at the moment to restrict the function to spanners. The expanded function encompassing spanners

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-19 Thread Janek Warchoł
On Thu, Jul 19, 2012 at 2:17 AM, David Nalesnik david.nales...@gmail.com wrote: I took a look at this--I couldn't resist!!--and actually it wasn't too hard to incorporate Harm's (very cool) snippet into \alterBroken. I've attached a file which shows how his example would be expressed with that

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-19 Thread David Nalesnik
Hi Janek, The only thing that worries me is the indentation - there are some tabs used and Frescobaldi displays them wrong (i suppose you meant 1 tab to be equal to 4 spaces, not 8). Oops! Usually I remember to convert tabs to spaces (and trim whitespace from the ends of lines), but not

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-19 Thread David Kastrup
David Nalesnik david.nales...@gmail.com writes: Oops!  Usually I remember to convert tabs to spaces (and trim whitespace from the ends of lines), but not here.   The examples are nice and pretty much self-explanatory. If fact, the only thing i don't like is that backticks are

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-19 Thread David Nalesnik
David, Why does this have to be a list? Why not just make it two separate arguments? If, for whatever reason, you really really really have this information in a two-element list called whatever, you can still write \once \alterBroken Staff.BarLine #'color #@whatever It certainly makes

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-19 Thread David Kastrup
David Nalesnik david.nales...@gmail.com writes: David, Why does this have to be a list?  Why not just make it two separate arguments? If, for whatever reason, you really really really have this information in a two-element list called whatever, you can still

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-18 Thread David Nalesnik
Hi Janek, On Wed, Jul 18, 2012 at 12:22 AM, Janek Warchoł janek.lilyp...@gmail.comwrote: On Wed, Jul 18, 2012 at 12:43 AM, david.nales...@gmail.com wrote: The function will override unbroken spanners, but it will ignore non-spanners with a warning. What about things like clef change at a

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-18 Thread Janek Warchoł
On Wed, Jul 18, 2012 at 1:56 PM, David Nalesnik david.nales...@gmail.com wrote: Perhaps this is a candidate for a different function, and possibly the name \alterBroken should be changed to something more precise? (I thought \alterBrokenSpanner or \overrideBrokenSpanner would be an awful lot

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-18 Thread Thomas Morley
2012/7/18 Janek Warchoł janek.lilyp...@gmail.com: On Wed, Jul 18, 2012 at 1:56 PM, David Nalesnik david.nales...@gmail.com wrote: Perhaps this is a candidate for a different function, and possibly the name \alterBroken should be changed to something more precise? (I thought

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-18 Thread Janek Warchoł
On Wed, Jul 18, 2012 at 8:18 PM, Thomas Morley thomasmorle...@googlemail.com wrote: 2012/7/18 Janek Warchoł janek.lilyp...@gmail.com: I haven't seen it before - looks awesome :) (however, it would be even more awesome if it was one general function for all purposes ;) ) I wrote this snippet

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-18 Thread Thomas Morley
2012/7/18 Janek Warchoł janek.lilyp...@gmail.com: On Wed, Jul 18, 2012 at 8:18 PM, Thomas Morley thomasmorle...@googlemail.com wrote: 2012/7/18 Janek Warchoł janek.lilyp...@gmail.com: I haven't seen it before - looks awesome :) (however, it would be even more awesome if it was one general

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-18 Thread David Kastrup
Thomas Morley thomasmorle...@googlemail.com writes: 2012/7/18 Janek Warchoł janek.lilyp...@gmail.com: On Wed, Jul 18, 2012 at 8:18 PM, Thomas Morley thomasmorle...@googlemail.com wrote: 2012/7/18 Janek Warchoł janek.lilyp...@gmail.com: I haven't seen it before - looks awesome :) (however,

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-18 Thread David Nalesnik
On Wed, Jul 18, 2012 at 3:18 PM, David Kastrup d...@gnu.org wrote: Thomas Morley thomasmorle...@googlemail.com writes: 2012/7/18 Janek Warchoł janek.lilyp...@gmail.com: On Wed, Jul 18, 2012 at 8:18 PM, Thomas Morley thomasmorle...@googlemail.com wrote: 2012/7/18 Janek Warchoł

Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-17 Thread david . nalesnik
Reviewers: , Description: Add function for overriding broken spanners to LilyPond. The music function \alterBroken is intended to facilitate overrides applied independently to the pieces of broken spanners--one of the perennial difficulties faced by users of LilyPond (addressed in Extending

Re: Add function for overriding broken spanners to LilyPond. (issue 6397054)

2012-07-17 Thread Janek Warchoł
On Wed, Jul 18, 2012 at 12:43 AM, david.nales...@gmail.com wrote: The function will override unbroken spanners, but it will ignore non-spanners with a warning. What about things like clef change at a line break - is it possible to override them using this approach? It would be nice if i