Get context in Scheme function (determining current moment)

2013-12-04 Thread Urs Liska
Hi, when I'm trying to determine the the position in a piece when inside a music function I think I have to use either ly:context-current-moment or ly:context-now Both functions take a 'context' as argument, but I don't see where this should be taken from. so a) how do I get a current

Re: Get context in Scheme function (determining current moment)

2013-12-04 Thread David Kastrup
Urs Liska u...@openlilylib.org writes: Hi, when I'm trying to determine the the position in a piece when inside a music function I think I have to use either ly:context-current-moment or ly:context-now That's stupid: they do the same thing. Why do we have the same function twice? Both

Re: Get context in Scheme function (determining current moment)

2013-12-04 Thread Urs Liska
Am 04.12.2013 16:39, schrieb David Kastrup: Again: what are you trying to do? Probably my reply to your previous answer will have told you in the meantime. My \annotate function should also store the position in the score (to print that out and to sort by it). So when I use the function in

Re: Get context in Scheme function (determining current moment)

2013-12-04 Thread Jan-Peter Voigt
Am 04.12.2013 17:01, schrieb Urs Liska: My \annotate function should also store the position in the score (to print that out and to sort by it). So when I use the function in the input file it should store location elements and current measure and measure position in several variables. so yout

Re: Get context in Scheme function (determining current moment)

2013-12-04 Thread Urs Liska
Am 04.12.2013 17:15, schrieb Jan-Peter Voigt: Am 04.12.2013 17:01, schrieb Urs Liska: My \annotate function should also store the position in the score (to print that out and to sort by it). So when I use the function in the input file it should store location elements and current measure and

Re: Get context in Scheme function (determining current moment)

2013-12-04 Thread Mike Solomon
On Dec 4, 2013, at 9:45 PM, Urs Liska u...@openlilylib.org wrote: Am 04.12.2013 17:15, schrieb Jan-Peter Voigt: Am 04.12.2013 17:01, schrieb Urs Liska: My \annotate function should also store the position in the score (to print that out and to sort by it). So when I use the function in the