> > So ly:glob-property has side effects because of the stem callback? > > How can I make sure to get the final stem direction after all > > dependent properties were calculated? > > > > I want to replace a note head with a triangle, but there is a gap > > between note head a stem when the stem points upward. To correct this, I > > modify the stem-attachment property of the note head. This correction > > offset must be different when the stem points down. > > I'd override the default callback for stem-attachment. It should be > safe to get the stem direction at this point since it's already been > calculated and cached. > > Cheers, > Neil
Thanks, Neil. That helped. I will read a little more about callbacks. A number of ugly parts of my code could be solved a lot more elegantly through callbacks. Best, Rekado _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel