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

Init value for channels #167

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from
Open

Init value for channels #167

wants to merge 9 commits into from

Conversation

0b5vr
Copy link
Owner

@0b5vr 0b5vr commented Mar 12, 2023

Each channel now has an init property.

Channels now have a value specified as init until the first item.
Also, the value will be reset to init when items have reset.

Note that it does not emit an event.
If you want to emit an event on start, you still need to put an item on time = 0.0.

@0b5vr 0b5vr added category: ✨ New Feature Boost our productivity! category: 💡 Behavior Changes package: core @0b5vr/automaton package: gui @0b5vr/automaton-with-gui labels Mar 12, 2023
@0b5vr 0b5vr added this to the v4.3.0 milestone Mar 12, 2023
@0b5vr 0b5vr self-assigned this Mar 12, 2023
binarySearch condition should be lte instead of lt, otherwise it doesn't react when an item just starts
I don't remember when I wrote this
item.reset still changes the value back to zero :<
I might want to improve this in the next breaking update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: 💡 Behavior Changes category: ✨ New Feature Boost our productivity! package: core @0b5vr/automaton package: gui @0b5vr/automaton-with-gui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant