Nucleus Blast · Commands

Transport, tempo and markers for Logic Pro

10 commands for time: play, stop and record, move the playhead to a bar, set the cycle range, the tempo and the tempo changes along the song, place markers, zoom and show panels.

Your agent sends each command to the one tool, named logic: {command: "fader", params: {strip: "Bass", db: -6, confirmed: true}}. The reply says verified: true only when Logic showed the expected state.

transport Read the transport, play, stop, pause, or step the playhead, without bringing Logic to the front.

transport {} reads: playing, recording, position, tempo, cycle, metronome, count-in. transport {action: 'play' | 'stop' | 'pause'} presses the control-bar button and reads the play state back (Logic has no separate pause: stop leaves the playhead where it is). transport {action: 'rewind' | 'forward', bars?: 1} moves the playhead by whole bars; transport {action: 'start'} goes to bar 1.

Reads, or moves the view, the transport or the selection: no confirmation needed.

Used in: Sketch a MIDI idea

record Start or stop recording, and tell what was recorded.

record {} reads: recording or not, armed tracks, selected track. record {action: 'start', confirmed: true} starts (Logic records on the armed tracks, or on the selected one; the song plays out loud; a count-in may run first; with Cycle on it starts at the cycle start, not at the playhead). record {action: 'stop'} stops and lists the new regions. A Logic question before recording is returned, never answered.

Reads freely. Each change it makes needs confirmed: true.

Used in: Record a take

control_bar List or set the control-bar switches: metronome, count-in, replace, autopunch, solo…

control_bar {} lists every control shown in the control bar with its state. control_bar {name: 'Metronome Click' | 'Count In' | 'Replace' | 'Autopunch' | 'Solo' | …} reads one. Add on: true | false (or toggle: true) to set it, without bringing Logic to the front; read back. Play, Record and Cycle have their own commands.

Reads, or moves the view, the transport or the selection: no confirmation needed.

Used in: Record a take

goto Move the playhead to a bar (and beat), or by a number of bars.

goto {bar: 9, beat?: 1} or goto {bars: -4} (relative to the playhead). Steps the position display, no keystroke, read back.

Reads, or moves the view, the transport or the selection: no confirmation needed.

Used in: Record a take

cycle Read or set the cycle (loop) range.

cycle {} reads on/off and its bars. cycle {on: true | false} | {selection: true} (locators from the selected regions) | {start: 5, end: 13} (drags the cycle edges in the ruler), each with confirmed: true.

Reads freely. Each change it makes needs confirmed: true.

Used in: Bounce, and check what was written

tempo Read or set the project tempo.

tempo {} reads. tempo {bpm: 124, confirmed: true} writes the tempo display without bringing Logic to the front. Whole numbers from 5 to 990.

Reads freely. Each change it makes needs confirmed: true.

Used in: Build a session skeleton

tempo_event List, create, change, move or delete tempo changes along the song.

tempo_event {} lists. {action: 'create' | 'set', bar, bpm} | {action: 'move', bar, to_bar} | {action: 'delete', bar}, each with confirmed: true. Whole-number tempos. The bar-1 event is the project tempo: use tempo.

Reads freely. Each change it makes needs confirmed: true.

marker List, create, rename, move, delete markers, or jump to one.

marker {} lists (bar, name). {action: 'create', bar?, name?} | {action: 'create', markers: [{bar: 1, name: 'Intro'}, {bar: 9, name: 'Verse'}]} (several in one call, much faster than one call each) | {action: 'rename', marker | number | bar, to} | {action: 'move', marker, to_bar} | {action: 'delete', marker}, each with confirmed: true. {action: 'goto', marker} is free. Rename writes the name field without any keystroke; Logic comes to the front for a second.

Reads freely. Each change it makes needs confirmed: true.

Used in: Lay out the song with markers, Build a session skeleton

zoom Read or set the zoom of the Tracks area, or fit everything in view.

zoom {} reads the horizontal and vertical zoom sliders with their min and max. zoom {horizontal?: value, vertical?: value} sets them, read back. zoom {fit: true} toggles Logic's zoom-to-fit (selection, or all contents).

Reads, or moves the view, the transport or the selection: no confirmation needed.

panel Read, show or hide a panel of the main window.

panel {name: 'Mixer' | 'Library' | 'Inspector' | 'Editors' | 'Loop Browser' | 'Browsers' | 'Smart Controls' | 'List Editors' | 'Note Pads' | 'Toolbar' | 'Quick Help'} reads. Add on: true | false to show or hide (read back), or toggle: true to flip. Mixer and Editors share the bottom of the window.

Reads, or moves the view, the transport or the selection: no confirmation needed.

Other commands

All the commands on one page