|
From: | Flaming Hakama by Elaine |
Subject: | Re: TieColumn syntax |
Date: | Fri, 13 Mar 2020 14:21:28 -0700 |
From: Flaming Hakama by Elaine <address@hidden>
Date: Thursday, December 5, 2019 at 4:20 PM
To: Lilypond-User Mailing List <address@hidden>
Subject: TieColumn syntax
Hi,
I wanted to set a laissez vibrer tie upwards, and found that there is no equivalent to \slurUp, \tieUp, etc.
I was able to do it, thanks to http://lsr.di.unimi.it/LSR/Snippet?id=211
In my use case, the following did the trick:
\version "2.19.81"
laissezVibrerUp = \once \override LaissezVibrerTieColumn.tie-configuration = #`((2.5 . ,UP))
\relative c' { r2 f8 a b d \laissezVibrer }
\relative c' { r2 f8 a b \laissezVibrerUp d \laissezVibrer }
However, I am curious about the syntax of the tie-configuration.I get that it is a list of pairs, and in my case the list only has one element.
What is the meaning of the leading comma for the direction?
Also, why does the IR only discuss the values 1, -1 and 0, when there are also descriptive names for the direction values? I'm guessing that the IR is a lower level interface, and that, for example, ",UP" ends up being a convenience for the value 1.
Is there somewhere else in the docs where this is described?
Following the # is `, which is called a quasi-quote, which means that we mostly don’t want to evaluate the Scheme _expression_.
However, within a quasi-quoted scheme _expression_, an _expression_ prefixed with , *will* be evaluated.
UP and RIGHT are scheme expressions that evaluate to 1.
CENTER is a scheme _expression_ that evaluates to 0.
LEFT and DOWN are scheme expressions that evaluate to -1.
So you could replace
laissezVibrerUp = \once \override LaissezVibrerTieColumn.tie-configuration = #`((2.5 . ,UP))
with
laissezVibrerUp = \once \override LaissezVibrerTieColumn.tie-configuration = #((2.5 . 1))
DOWN, UP, and CENTER are described in the Learning Manual:
http://lilypond.org/doc/v2.18/Documentation/learning/within_002dstaff-objects#the-direction-property
LEFT and RIGHT are hinted at, but not explained, in the Notation Reference Appendix A.10.
It is described in the Selected Snippets under
Granted, in order to find this, I had to search the documentation for LEFT; it would probably be good to add it to the Learning Manual along with DOWN and UP.
Thanks,
Carl
[Prev in Thread] | Current Thread | [Next in Thread] |