[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading global variables from Scheme [documentation request?]
From: |
David Kastrup |
Subject: |
Re: Reading global variables from Scheme [documentation request?] |
Date: |
Thu, 08 Nov 2018 10:10:02 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
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
- 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 <=
- Re: Reading global variables from Scheme [documentation request?], Thomas Morley, 2018/11/08
- \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