[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading global variables from Scheme [documentation request?]
From: |
Thomas Morley |
Subject: |
Re: Reading global variables from Scheme [documentation request?] |
Date: |
Thu, 8 Nov 2018 10:42:42 +0100 |
Am Do., 8. Nov. 2018 um 10:10 Uhr schrieb David Kastrup <address@hidden>:
>
> Jérôme Plût <address@hidden> 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
- Reading global variables from Scheme [documentation request?], Jérôme Plût, 2018/11/08
- Re: Reading global variables from Scheme [documentation request?], David Kastrup, 2018/11/08
- Re: Reading global variables from Scheme [documentation request?],
Thomas Morley <=
- \goto for Lilypond, Jérôme Plût, 2018/11/08
- Re: \goto for Lilypond, Jérôme Plût, 2018/11/08
- Re: \goto for Lilypond, Kieren MacMillan, 2018/11/08
- Re: \goto for Lilypond, Jérôme Plût, 2018/11/08
- Re: \goto for Lilypond, Jérôme Plût, 2018/11/08
- Re: \goto for Lilypond, Kieren MacMillan, 2018/11/08