lilypond-user
[Top][All Lists]
Advanced

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

Re: Determine \voiceXXX implicitly


From: David Kastrup
Subject: Re: Determine \voiceXXX implicitly
Date: Mon, 20 Mar 2017 22:47:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

address@hidden writes:

> Hi,
>
> I recall that we had such a discussion some years ago when we worked
> at the Layout Control Options for Frescobaldi. IIRC there wasn't a
> viable solution, but maybe things have changed and maybe I know more
> today ...
>
> Is it possible to determine from inspecting a grob whether its
> properties have been set automatically or by explicit voice
> attribution? Concretely I'm talking about attribution through the << {
> } \\ { } >> construct.
>
> When dealing with a Tie or Slur object I can see its 'direction
> property, but I can't see if that has been calculated automatically,
> manually overridden through \override or \tweak, or set through a
> \voiceXXX command or the polyphony construct.
>
> But *is* there a way to determine such a situation? I think the
> \voiceXXX commands only set a number of properties, but there's no
> information about that "act", right? What I could imagine is adding a
> custom grob property and set this by redefining \voiceXXX. But can I
> do something comparable for the temporary polyphony construct?
>
> I need this because in my current project I need to place ties not
> according to LilyPond's algorithms but always opposite of the stem
> direction - but only in a \oneVoice context. With \voiceOne also ties
> have to go upwards, just like usual.
>
> Any suggestions?

Put the corresponding direction callback override at Staff level or
anywhere outside of Voice, then it will be overriden by \voice... or
{ \\ }.

-- 
David Kastrup



reply via email to

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