[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
skylines and custom-code
From: |
Thomas Morley |
Subject: |
skylines and custom-code |
Date: |
Sat, 3 Apr 2021 17:28:37 +0200 |
Hi,
please consider the code below.
\version "2.22.0"
#(ly:set-option 'debug-skylines #t)
{
\override NoteHead.no-ledgers = ##t
%\override NoteHead.stencil = #point-stencil
\override Stem.stencil =
#(lambda (grob)
(for-each
(lambda (nh) (ly:grob-translate-axis! nh -6 Y))
(ly:grob-array->list
(ly:grob-object (ly:grob-parent grob X) 'note-heads)))
(ly:stem::print grob))
b'''8
b'''8.
}
For some graphical notation I need to move notes (i.e. at least
NoteHead, Stem, Flag) freely in Y-axis direction.
Using ly:grob-translate-axis! seemed to be nice for this pupose,
because while moving the NoteHead the mentioned other Grobs follow.
Alas, enabling 'debug-skylines shows a problem: the skyline obviously
still sees the old grob-positions.
How to avoid, circumvent, correct?
Furthermore, why there's no problem for dotted notes?
Thanks,
Harm
skyline-problem.png
Description: PNG image
- skylines and custom-code,
Thomas Morley <=
- Re: skylines and custom-code, Jean Abou Samra, 2021/04/03
- Re: skylines and custom-code, Thomas Morley, 2021/04/05
- Re: skylines and custom-code, Thomas Morley, 2021/04/08
- Re: skylines and custom-code, Kevin Barry, 2021/04/08
- Re: skylines and custom-code, Jean Abou Samra, 2021/04/08
- Re: skylines and custom-code, Thomas Morley, 2021/04/08
- Re: skylines and custom-code, Jacques Menu, 2021/04/08
- Re: skylines and custom-code, Thomas Morley, 2021/04/08