The parent automaton.
The index of __items it should evaluate next.
List of channel items.
An array of listeners.
Whether it should reset itself in next update call or not.
The time that was used for the calculation of [[__lastValue]].
A cache of last calculated value.
The time that was used for the calculation of [[__lastValue]].
A cache of last calculated value.
List of fx sections.
Its length i.e. the end of the last item.
The most important status of its current status.
Search for item that has given id then return index of it. If it couldn't find the item, it will throw an error instead.
Id of item you want to grab
The index of the item
Serialize its items.
Serialized items
Sort items by time.
__getItemIndexById, but can return -1 when it cannot find the item.
Watch for status changes. Execute given procedure immediately. If the procedure changes its status, emit an event.
A procedure that might change its status
Change the amp a curve item.
Id of the item you want to change
Your desired amp
Change the speed and offset of a curve item.
Id of the item you want to change
Your desired speed
Your desired offset
Change the reset of an item.
Id of the item you want to change
Reset
Change the value of an item.
Id of the item you want to change
Your desired value
This method is intended to be used by [[Automaton.update]]. Consume and return items.
The current time of the parent Automaton
Array of tuples, [ timing of the event, a function that execute the event ]
Create a constant item.
The timepoint you want to add
Data of the item
Create a curve item.
The curve id you want to add
The timepoint you want to add
Data of the item
Create an item from dumped data.
Data of the item
Mark this channel as should be reset in next update call. Almost same as update, but not instant.
Load a channel data.
Data of channel
Duplicate an item.
The timepoint you want to add
The item you want to duplicate
Data of created item
Move an item --force. Best for undo-redo operation. probably.
Id of the item you want to move
Beginning time
Dump data of an item.
Id of the node you want to dump
Data of the node
Get the nth item.
Index of the item
Data of the item
Return how many items the channel currently have.
Items count
Return a status that matches to the given code, if exist.
The code of status you want to get
Return the value of specified time point.
Time at the point you want to grab the value.
Result value
If you want to grab a value from GUI for some reasons, use this. This supresses updating the preview value for curves.
Time at the point you want to grab the value.
Result value
Check whether the item is the last item or not.
Id of the item you want to check
Mark this channel as used.
Move an item.
Id of the item you want to move
Time
Remove an item.
Id of the item you want to remove
"Repeat" (duplicate) the given item.
The item you want to repeat
Data of created item
Reset the internal states. Call this method when you seek the time.
Resize an item.
Index of the item you want to resize
Length
Wheter it should stretch the item or not
Resize an item by left side of the end. It's very GUI dev friendly method. yeah.
Index of the item you want to resize
Length
Wheter it should stretch the item or not
Serialize its current state.
Serialized state
Add a new listener that receives a [[ChannelUpdateEvent]] when an update is happened.
A subscribing listener
getItem, but can return null when it cannot find the item.
Id of the node you want to dump
Data of the node
Generated using TypeDoc
It represents a channel of Automaton. It has even more pretty APIs than raw Channel yay It has even more pretty APIs yay
Parent automaton
Data of the channel