On 2018/01/23 09:55:04, dak wrote:
mailto:thomasmorle...@gmail.com writes:
> Yep, the difference between left- and right-handed are certain
negative
> instead of a positive values. > I'd love to use a multiplier retrieved from left-handed. > Though, how to code properly and user-friendly. > One could do > (1) separate conditions (that's what I've done). Disadvantage: code
is
> more complex. No multiplier. > (2) Let 'left-handed accept RIGHT/LEFT. Disadvantage is the need to > input it via an quasiquoted list > (3) Let 'left-handed accept -1/1. Disadvantage: it may be not that > obvious to the user what -1/1 actually means > (4) Let 'left-handed accept symbols left/right. Disadvantage: need
to
> transform these symbols into -1/1. > Something like (if (eq? left-handed 'left) -1 1) needs to be added. > (4) Drop 'left-handed and get the -1/1 from (sign string-distance) > > Opinions?
We use enough properties of the LEFT/RIGHT kind ((2) and (3) are
really
the same option apart from examples/docs) that I don't see a reason to diverge here. A property 'handedness set to LEFT or RIGHT would be in that ballpark.
Well, we would need to teach the user why \markup \override #'(fret-diagram-details . ((handedness . LEFT))) \fret-diagram #"6-x;5-3-3;4-2-2;3-o;2-1;1-o;" not works, without using proper quasiquote/unquote. That's why I listed (2) _and_ (3) Btw, I found only a single place where we use `(... ,RIGHT ) etc in the docs: http://lilypond.org/doc/v2.19/Documentation/notation/displaying-pitches#ottava-brackets Without explaining what ` and , actually means, though. https://codereview.appspot.com/339270043/ _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel