Time-line docs
AutomationsNode-RED nodes

Input nodesRequires Pro

Reference the current-track and Key Point nodes provided by Time-line Live.

Full reference for the Live in nodes, generated from the in-editor help.

Current song

Emits the backend currentTrack snapshot for the “now playing” deck, with a continuous Stream output.

Outputs

  • Change (edge-triggered): emits when the song context changes (deck/track/title/artist) or its basic state changes (active/isPlaying/isOnAir/bpm/durationMs). Moving the pitch fader changes bpm, so it fires then too
  • Stream (continuous): forwards the backend currentTrack snapshot at ≈30fps

Output: change — msg.topic: tl/current-track. The trimmed msg.payload contains these fields when they are available:

Prop

Type

Output: stream — msg.topic: tl/current-track/stream. Payload is the full currentTrack snapshot: the fields above plus pitch, beatInMeasure, beat, currentPositionMs, and the Key Point timeline fields (currentKeypoint/nextKeypoint/currentKeypointProgress, Group fields like currentKeypointGroup/currentKeypointGroupProgress, Family fields like currentKeypointFamily/currentKeypointFamilyProgress).

BPM updates are included: the stream reflects live BPM changes, and the change output also fires when bpm changes.

Node status: idle, song title, or ws disconnected.

Current Key Point

Emits for every Key Point (including Unknown), the current section of the now-playing track, whatever it is.

Outputs

  • Event (edge-triggered): emits an enter and an exit for every Key Point, also inside a group (a group of two fires twice)
  • Stream (continuous): emits while a track is active (≈30fps)

Output: event — msg.topic: tl/keypoint/<keypointId>/event. msg.payload.keypointId is the actual current Key Point (e.g. drive, build, drop, unknown). Payload fields are the same as the Key Point nodes below, including the group and family fields, so the Enter and Exit settings Of a and Which work with this node too.

Prop

Type

When the Key Point changes, this node emits an exit for the previous Key Point (reason: "keypoint_changed") followed by an enter for the new one.

Output: stream — msg.topic: tl/keypoint/<keypointId>; the full snapshot, like the Key Point nodes below.

Key Point nodes

Drive, Drive Break, Build, Rhythmic Build, Pre-Drop, Drop, Fake Drop, Drop Break, Breakdown, Outro and Unknown all behave identically — only the keypointId and topics differ. Drive is used as the example; substitute your node's id.

Emits when the now-playing track is in the Drive Key Point. keypointId: drive.

Outputs

  • Event (edge-triggered): emits an enter and an exit for every Key Point of its type, also inside a group (three Drops in a row = three enters)
  • Stream (continuous): emits while active or within the target Pre/Post Window (≈30fps)

Output: event

msg.topic: tl/keypoint/drive/event

msg.payload uses the event payload fields above, plus fields that place the event in its group and family:

FieldTypeMeaning
stepnumberPosition of this Key Point in its group, starting at 1
totalStepsnumberNumber of Key Points in the group
runStart1Present on the enter of the first Key Point of the group
runEnd1Present on the exit of the last Key Point of the group
familyStart0 or 1On an enter: 1 when this Key Point starts the Family
familyEnd0 or 1On an exit: 1 when this Key Point ends the Family, also when the Family stops early

The Enter and Exit nodes use these fields for their Of a and Which settings. Example:

{
  "event": "enter",
  "keypointId": "drive",
  "step": 1,
  "totalSteps": 1,
  "runStart": 1,
  "familyStart": 1,
  "deckId": 1,
  "trackId": 12345,
  "currentPositionMs": 42123,
  "durationMs": 240000,
  "currentKeypoint": "drive",
  "currentKeypointProgress": 0.42,
  "nextKeypoint": "drive-break",
  "currentKeypointFamily": "drive",
  "previousKeypointFamily": null,
  "nextKeypointFamily": null,
  "currentKeypointFamilyProgress": 0.10,
  "currentKeypointFamilyStep": 1,
  "currentKeypointFamilyTotalSteps": 1,
  "currentKeypointGroup": "drive",
  "previousKeypointGroup": null,
  "nextKeypointGroup": null,
  "currentKeypointGroupProgress": 0.10,
  "currentKeypointGroupStep": 1,
  "currentKeypointGroupTotalSteps": 1
}

Edge cases:

  • On websocket disconnect while active, an exit event is emitted with reason: "ws_disconnected".
  • If the Key Point is still active when the connection is back, the node emits an enter with reason: "resumed" and resumedFrom: "ws_disconnected".
  • Turning a flow or a group off in Live stops its nodes: they send nothing, not even an exit.
  • If another track or deck takes over while the Key Point is active, the node emits an exit and a new enter, both with reason: "track_changed". The same Family on the next track counts as a new Family.
  • If playback starts while already inside the Key Point (e.g. you pressed Play mid-section), the node emits a fresh enter with reason: "play_started". A pause ends neither the group nor the Family, so this enter doesn't start them again: Enter with Of a: Group or Family ignores it.
  • Seeking back inside a Family doesn't start it again. Seeking out of it ends it.

Output: stream

msg.topic: tl/keypoint/drive

msg.payload contains the backend currentTrack snapshot fields plus these target Stream fields for Key Point, Group and Family windows:

Prop

Type

The event output remains exact enter/exit only; Pre/Post Windows only affect the Stream output. When the window ends, the Stream output sends one final message with every flag cleared.

Notes

  • Connects to the backend websocket at ws://127.0.0.1:<TIME_LINE_WS_PORT> (defaults to 17880).
  • Node status: idle, active, or ws disconnected.

How is this guide?

Last updated on

On this page