-
Notifications
You must be signed in to change notification settings - Fork 2
module node liveosc Song.API
node-liveosc~ Song
Song object, represents the current state of the Ableton Live set. Contains tracks, returns, and devices, as well as master track properties.
| Name | Type | Description |
|---|---|---|
liveosc |
Object | LiveOSC instance |
- Source:
-
Current beat/play position
- Number
- Source:
-
Current devices
- Array
- Source:
-
EventEmitter for song events
- EventEmitter
- Source:
-
LiveOSC instance
- Object
- Source:
-
Master track panning
- Number
- Source:
-
Transport play state, 1 = stopped, 2 = playing
- Number
- Source:
-
Current return tracks
- Array
- Source:
-
Currently selected scene
- Number
- Source:
-
Current tempo
- Number
- Source:
-
Current tracks
- Array
- Source:
-
Master track volume
- Number
- Source:
-
Trigger song continue play
- Source:
-
Move to next cue marker
- Source:
-
Listen for a song event, current events are:
ready play beat tempo scene volume pan
Name Type Description evString event name
cbfunction callback
- Source:
-
Trigger song play
- Source:
-
Trigger a scene play button
Name Type Description sceneNumber scene number to play
- Source:
-
Move to previous cue marker
- Source:
-
Trigger redo
- Source:
-
Refresh the current song state Recreates all tracks/returns/clips
- Source:
-
Sets the master track panning
Name Type Description panNumber new panning
- Source:
-
Sets the tempo
Name Type Description tempoNumber new tempo
- Source:
-
Sets the master track volume
Name Type Description volumeNumber new volume
- Source:
-
Trigger song stop
- Source:
-
Trigger undo
- Source:
-
Focus the master track
- Source:
-
Respond to /live/beat Called when a beat is reached in the song timeline
Name Type Description newNumber beat
- Source:
-
Respond to /live/master/devicelist Called when device list is received
- Source:
-
Respond to /live/master/pan Called when master track panning changes
Name Type Description panNumber new panning (-1.0 - 1.0)
- Source:
-
Respond to /live/play Called when the song starts or stops
Name Type Description playNumber state (1 = stopped, 2 = playing)
- Source:
-
Respond to: /remix/oscserver/startup /remix/oscserver/shutdown /live/refresh Refreshes the current song state
- Source:
-
Respond to /live/returns Called when number of returns is reported
Name Type Description numTracksNumber number of returns
- Source:
-
Respond to /live/scene Called when scene changes
Name Type Description sceneNumber new scene number
- Source:
-
Respond to /live/scenes Called when number of scenes is reported
Name Type Description numScenesNumber number of scenes
- Source:
-
Respond to /live/tempo Called when tempo changes
Name Type Description tempoNumber new tempo
- Source:
-
Repond to /live/tracks Called when number of tracks is reported
Name Type Description numTracksNumber new number of tracks
- Source:
-
Respond to /live/master/volume Called when master track volume changes
Name Type Description volumeNumber new volume (0.0 - 1.0)
- Source: