lilypond-auto
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] Re: #5740 Add


From: Auto mailings of changes to Lily Issues via Testlilyissues-auto
Subject: [Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] Re: #5740 Add \post to defer context actions to end of time step
Date: Mon, 17 Feb 2020 21:35:12 -0000

\post might be the missing piece preventing \partial from being implemented with ly + scm

Not the only missing piece. It looks like expressing what Partial_iterator does would also require alternative music that is iterated conditionally based on a test that occurs in context, something like this:

\context Timing \selectInContext #after-start <<
  {
    \once \set Timing.partialBusy = ##t
    \post \applyContext #apply-partial-after-start
  } {
    \applyContext #apply-partial-at-start
  }
>>

The effect of \selectInContext predicate << T F >> would be to iterate only T if the predicate is true, and only F if the predicate is false. In this example, the procedure after-start would return true if the current moment > 0.


[issues:#5740] Add \post to defer context actions to end of time step

Status: Started
Created: Wed Feb 05, 2020 08:11 PM UTC by Dan Eble
Last Updated: Thu Feb 06, 2020 09:21 PM UTC
Owner: Dan Eble

I've carved this off of some experimental work that allows expressing
in ly code the post-increment of a context property without
sensitivity to the number of times the music that requests it is
iterated. That is something that the rehearsal-mark engraver does,
and I believe it can only be done currently by an engraver/performer.

The implementation of \post is similar to the way \once reverts an
effect at the end of the time step. In fact, I first implemented it
the same way for the sake of simplicity; but after testing, I decided
to complicate it. \once reversions naturally occur in reverse order,
but it seems more natural for \post actions to run in the order given
in the ly code. It also seems more natural for all \once reversions
to precede all \post actions regardless of their order in the ly code.
Because of those differences, they are handled separately.

TODOs and questions:

https://codereview.appspot.com/581600043


Sent from sourceforge.net because address@hidden is subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

_______________________________________________
Testlilyissues-auto mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto

reply via email to

[Prev in Thread] Current Thread [Next in Thread]