Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FuncReverse() to the Interval system #1616

Open
kamgha opened this issue Feb 14, 2024 · 0 comments
Open

Add FuncReverse() to the Interval system #1616

kamgha opened this issue Feb 14, 2024 · 0 comments

Comments

@kamgha
Copy link
Contributor

kamgha commented Feb 14, 2024

Description

This is a feature request:

The interval system in DIRECT has Func(), which gets triggered only when the cursor for the Interval is going forward. However, there is no building block for the reverse case, when playRate is negative. I'm proposing a new FuncReverse() building block for the interval system that would be triggered when the cursor goes backwards (e. g. play_rate=-1.0 or on a new iteration in a loop, or when the cursor is set to before FuncReverse()).

Use Case

Can be used to undo something that has been done through Func(). In general, playRate should be seen as an arbitrary value and hence the feature set and the expected behaviour should not differ whether the playRate is positive or negative.

Being just another building block to the interval system keeps the system flexible and easy to use. Parallel(Func(), FuncReverse()) could be created to have a do/undo at the same position. But this is not always desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant