> > > why not:
> > >   [\once] \override Staff.Stem.direction = #UP/DOWN
> > > ?
> >
> > Well, if I could get this info within the music function, I would
> > pass it on to `\new Voice` as you describe.  So: How do I get this
> > info from the current context?

Ah, bad answer from me; I missed the `Staff` in the `\override`.
Unfortunately, I can't use `Staff`since I probably have more voices at
the same musical moment.

> You could do: [...]

This:

```
(let* ((stem-direction
         (assoc-get 'direction (ly:context-grob-definition ctx 'Stem)))
       (ctx-parent (ly:context-parent ctx)))
```

was the crucial information I couldn't find.  Thanks a lot!

> But there is still the Stem.direction-override.  Apart from that I'm
> not convinced above coding is suffiviently robust.  You may need ti
> test thoroughly.

I will check it, thanks again for the nice example.


    Werner

Reply via email to