Create a new Automaton instance.
Serialized data of the automaton
Options for this Automaton instance
A map of fx definitions.
This enables the Automaton instance to be able to communicate with GUI.
GUI settings for this automaton.
Whether it disables not used warning for channels or not. Can be specified via AutomatonWithGUIOptions.
It's currently playing or not.
Labels.
A cache of previous length. You should not touch this from any place but __tryUpdateLength.
Timeline will loop between these timepoints.
Mounted point of its GUI.
Resolution of the timeline.
Whether it has any changes that is not saved yet or not.
Version of the automaton.
It returns the current value of the Channel called name
.
If the name
is an array, it returns a set of name : channel as an object instead.
You can also give a listener which will be executed when the channel changes its value (optional).
Channels of the timeline.
Curves of the automaton.
Map of channels, name vs. channel itself.
Overrided save procedure. Originally intended to be used by automaton-electron. Can also be specified via AutomatonWithGUIOptions.
Define what to do with the context menu when you click the save icon on the header. Originally intended to be used by automaton-electron. Can also be specified via AutomatonWithGUIOptions.
Channel names, ordered.
A map of fx definitions.
GUI settings for this automaton.
It's currently playing or not.
A map of labels.
Length of the automaton i.e. the length of longest channel.
Resolution = Sampling point per second.
Whether it has any changes that is not saved yet or not.
Whether it has any changes that is not saved yet or not.
Current time of the automaton, that is set via update.
Version of the automaton.
Assigned to Automaton.auto
at constructor.
The name of the channel
A function that will be executed when the channel changes its value
Current value of the channel
Add fx definitions.
A map of id - fx definition
Return count of channels.
Count of channels
Create a new channel.
Name of channel
Serialized data of the channel
Created channel
Create a new curve.
Created channel
Create a new channel, or overwrite the existing one. Intended to be used by GUI.
Name of channel
Serialized data of the channel
Created channel
Mark this channel as should be reset in next update call. Almost same as update, but not instant.
Remove a label.
Name of the label
Load automaton state data. You might want to use compat beforehand to upgrade data made in previous versions.
Object contains automaton data.
Generate default fx params object.
Id of the fx
Default fx params object
Get a channel.
Name of the channel
The channel
Get the index of a channel.
Name of the channel
The index of the channel
Get a curve.
Index of the curve
The curve
Get a curve by id.
Id of the curve
The curve
Return the index of a given curve.
return -1
if it couldn't find the curve.
A curve you want to look up its index
the index of the curve
Search for a curve that has given id then return index of it. If it couldn't find the curve, it will throw an error instead.
Id of the curve you want to grab
The index of the curve
Get a fx definition.
If it can't find the definition, it returns null
instead.
Unique id for the Fx definition
Return description of a fx definition.
If it can't find the fx definition, it returns null
instead.
Id of the fx definition you want to grab
Description of the fx definition
Return list of id of fx definitions. Sorted.
List of id of fx definitions
Return display name of a fx definition.
If it can't find the fx definition, it returns null
instead.
Id of the fx definition you want to grab
Name of the fx definition
Return params section of a fx definition.
If it can't find the fx definition, it returns null
instead.
Id of the fx definition you want to grab
Params section
Get a channel. If the channel doesn't exist, create immediately.
Name of the channel
The channel
Mount a GUI to specified DOM.
Open an about screen. Intended to be used by automaton-electron. You cannot call this function when you are not using GUI.
Emit the pause
event.
The function itself doesn't do the pause operation, as Automaton doesn't have a clock.
Can be performed via GUI.
Emit the play
event.
The function itself doesn't do the play operation, as Automaton doesn't have a clock.
Can be performed via GUI.
Precalculate all curves.
Redo a step. Intended to be used by automaton-electron. You cannot call this function when you are not using GUI.
Remove a channel.
Name of channel
Remove a curve.
Reorder channels.
Name of the channel
Will interpret given index relatively if it's true
A function to reorder channels. Give a new index
Reset the internal states of channels. Call this method when you seek the time.
Emit the seek
event.
The function itself doesn't do the seek operation, as Automaton doesn't have a clock.
It will be performed via GUI.
Time
Serialize its current state.
Serialized state
Set a property of gui settings.
The parameter key you want to set
The parameter value you want to set
Set a label.
Name of the label
Timepoint of the label
Set a loop region.
Change its resolution. Can be performed via GUI.
New resolution for the automaton
Open a toasty notification. Intended to be used by automaton-electron. You cannot call this function when you are not using GUI.
Toggle play / pause.
Undo a step. Intended to be used by automaton-electron. You cannot call this function when you are not using GUI.
Unmount a GUI.
Update the entire automaton. You may want to call this in your update loop.
Current time
Compat serialized data. Use along with deserialize.
The data
Minimize serialized data for prod use.
The original data
Generated using TypeDoc
IT'S AUTOMATON!