Sequencer object
Properties
Name
Type
Example
Description
seqId
String
"-N8o2dhQeHQXZ6Emr2I7"
The ID of a sequencer.
Methods
The sequencer object has the following methods:
Method
Return type
Description
-
Plays a sequence to time
.
-
Seeks a sequence to time
.
-
Sets the duration of a sequence.
-
Sets a sequencer payload.
-
Starts playing a sequence.
-
Stops playing a sequence.
play(time)
Plays a sequence to a specified time
.
Parameters
Name
Type
Description
time
number
Time in seconds.
See also
seek(time)
Seeks a sequence to a specified time
.
Parameters
Name
Type
Description
time
number
Time in seconds.
See also
setDuration(duration)
Sets the duration of a sequence.
Parameters
Name
Type
Description
duration
number
Duration in seconds.
See also
setPayload(payload)
Sets the payload of a sequence.
Parameters
Name
Type
Description
payload
JSON
A payload defining a sequence's data and timing.
See also
start()
Starts playing a sequence.
stop()
Stops playing a sequence.
Last updated