Am Do., 8. Nov. 2018 um 10:10 Uhr schrieb David Kastrup <d...@gnu.org>:
>
> Jérôme Plût <plut.jer...@gmail.com> 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

Hi Jérôme,

could you post some example- or pseudo-code what you want to achieve?
Would be helpful...

Have to run for my regular job now, though.


Cheers,
  Harm

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to