Show:
Extends EndPoint

Interface to the current song

Access this object via the song property.

Table of Contents

Methods

close ()

Inherited from EndPoint: EndPoint.js:55

Closes the end point and stops listening for events.

This method no longer needs to be explicitly called as end points are now automatically closed when the last event listener is removed.

open ()

Inherited from EndPoint: EndPoint.js:35

Opens this end point and starts listening for events.

This method no longer needs to be explicitly called as end points are now automatically opened when the first event listener is attached.

Use this method to keep the end point open even when no event listeners are attached.

untilOpen () Promise

Inherited from EndPoint: EndPoint.js:137

Returns a promise that will be resolved when this end point is opened

Returns:

Promise

Example:

let C = new CantabileApi();
   C.application.open();
await C.application.untilOpen();

Properties

currentState

String

Defined in Song.js:58

The name of the current song state

name

String

Defined in Song.js:51

The name of the current song

Events

changed

Defined in Song.js:22

Fired when anything about the current song changes

currentStateChanged

Defined in Song.js:36

Fired when the current song state changes

nameChanged

Defined in Song.js:29

Fired when the name of the current song changes