[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Question] How to increment the current bar number
From: |
David Kastrup |
Subject: |
Re: [Question] How to increment the current bar number |
Date: |
Sun, 02 Sep 2018 21:26:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Malte Meyn <address@hidden> writes:
> Am 02.09.18 um 20:52 schrieb David Kastrup:
>>> You have to get the Score context somehow. This can be done by using
>>> \applyContext. I don’t know what context the procedure then is called
>>> with (maybe the current Bottom?)
>>
>> The current "whatever". Since you already had R1*3 descend to Bottom,
>> that would be Bottom.
>>
>> But you can certainly write
>>
>> \context Score \applyContext ...
>>
>> or similar (possibly Timing instead of Score in polyrhythmic stuff).
>
> Oh, that’s how it’s done … I always wondered what context
> \applyContext applies to; I don’t really know better now (therefore,
> \applyContext always has been sort of magic in my eyes) but at least I
> learned how to control that.
>
> Neither
> http://lilypond.org/doc/v2.19/Documentation/extending/context-evaluation
> nor
> http://lilypond.org/doc/v2.19/Documentation/notation/available-music-functions
> takes that “magic” away; is there any documentation that explains what
> is going on here?
Just the current context I think. That's like <<...>> which can be at
Score, Staff, Voice or whatever level is current at the moment.
--
David Kastrup