Cue Collection API¶
The cue collection API is common to all objects implementing the Cue Collection interface. This includes Dataset and Sequencer.
-
class
CueCollection(options)¶ Arguments: - options.order (object) – order, see Cue Ordering
Constructor abstrac base class for cue collection.
-
CueCollection.size¶
-
CueCollection.has(key)¶
-
CueCollection.get(key)¶
-
CueCollection.keys()¶ -
No particular ordering is guaranteed.
-
CueCollection.values()¶ -
No particular ordering is guaranteed.
-
CueCollection.entries()¶ -
No particular ordering is guaranteed.
-
CueCollection.cues(options)¶ The cues method is similar to
CueCollection.values(), but conveniently adds support for sorting the resulting cues. See Cue Ordering. Order supplied in this function take precedent over order supplied in constructor.Arguments: - options.order (object) –
ordering of cues
- string “low” : ascending order by lower cue interval endpoint
- string “high”: ascending order by higher cue interval endpoint
- function cmp: custom order by supplying ordering function, similar to Array.sort(cmp).
Returns Array: array of cues
- options.order (object) –
-
CueCollection.on(name, callback[, options])¶
-
CueCollection.off(name, subscription)¶