[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
catching layout-content
From: |
Thomas Morley |
Subject: |
catching layout-content |
Date: |
Fri, 25 May 2018 12:04:17 +0200 |
Hi all,
how can I see from inside a procedure that there is indeed an
\override in \layout ?
Below returns a long list, but nothing like the \override
\layout { \override NoteHead.color = #red }
#(pretty-print
(sort
(ly:module->alist (ly:output-def-scope $defaultlayout))
(lambda (p q)
(symbol<? (car p) (car q)))))
I'm aware using
\layout { \context { \Voice \override NoteHead.color = #red } }
will return a different result, indicating the layout is indeed changed.
Ideally I would love to catch both cases.
Thanks,
Harm
- catching layout-content,
Thomas Morley <=