Jérôme Plût <[email protected]> writes: > I would like to *read*, from within a Scheme function > (define-music-function), the values of variables such as > Score.currentBarNumber or Score.alternativeNumberingStyle. > > I can have a guess that this is possible with such functions as > ly:context-property or ly:output-def-lookup, but the documentation of > these functions is quite terse. > > How is it possible to access these values?
Not at all since they don't exist at the time a music function is interpreted. Depending on what you actually want to do, you might install callbacks that kick in at a time where those values exist. How this is done depends on just what you want to see done when. -- David Kastrup _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
