Re: Place barres on fret diagrams if they can be inferred (issue 294570043 by carl.d.soren...@gmail.com)

2018-05-04 Thread thomasmorley65

Hi Carl,

apart from one nit (see below)
LGTM

Probably not related to this patch:
Clicking "Delta from patch set" gives strange results. No clue what
Rietveld does...




https://codereview.appspot.com/294570043/diff/20001/scm/translation-functions.scm
File scm/translation-functions.scm (right):

https://codereview.appspot.com/294570043/diff/20001/scm/translation-functions.scm#newcode305
scm/translation-functions.scm:305: (display barre-list)
Forgotten debugging-code?

https://codereview.appspot.com/294570043/

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Context regression tests (issue 348760043 by nine.fierce.ball...@gmail.com)

2018-05-04 Thread nine . fierce . ballads

On 2018/05/03 12:40:17, Carl wrote:

In my opinion, the most ideal result when one tries to create a new

context with

the same type and id of an existing context would be to generate an

error,

something like "Error: duplicate Staff with ID of A".


First, thanks for taking a look.

It seems impractical to eliminate ambiguity entirely, and probably
pretty difficult even to reduce it.

For one thing, context IDs are optional.  I guess you wouldn't want to
start forbidding the creation of multiple staves without any ID, but
there is a choice to make.

There are features (\partcombine comes to mind, and << \\ >> IIRC) that
create contexts with specific IDs that are not necessarily unique in the
scope of a score.  They can produce trees like
context-find-grandchild-ambiguous.ly.  It would be nice to emit a
warning in that case.  I wonder about the impact of an exhaustive search
on performance.

It might be interesting to experiment with forbidding creation of
  * a context with the same type+ID as any of its ancestors
  * siblings of the same type+ID
and see what happens to the regression tests.  That might be worth
something, but unless the \change command were similarly limited, it
might still be possible to create weird trees by relocating branches.

(Note that when I say "it would be nice," I'm not volunteering to do
these things now.)


If we promise the behavior that your regression tests demonstrate,

then we have

developed an official scope for context IDs, and most LilyPond

constructs do not

have scope.


Could I address your concern with comments in the test descriptions?
Which ones?  Even if we consider some of this behavior subject to
change, it's still useful to be able to detect changes.

https://codereview.appspot.com/348760043/

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel