Command Reference
Complete reference of all mtrack commands
Command Reference
Complete reference for all mtrack command-line commands.
Player Commands
start
Start mtrack as a player process:
|
|
Starts the player with the specified configuration file.
play-direct
Play a song directly without starting the full player:
|
|
Options:
-d, --device <DEVICE>: Audio device name-m, --midi-device <DEVICE>: MIDI device name-s, --dmx-dim-speed <SPEED>: DMX dimming speed modifier--dmx-universe-config <CONFIG>: DMX universe configuration (format:universe=1,name=light-show;universe=2,name=another)
Example:
|
|
Device Discovery
devices
List available audio devices:
|
|
Output format:
Devices:
- DeviceName (Channels=22) (Alsa)
midi-devices
List available MIDI devices:
|
|
Output format:
Devices:
- DeviceName:PortName 14:0 (Input/Output)
Song Management
songs
List all songs in a repository:
|
|
Output includes:
- Song names
- Duration
- Number of channels
- Sample rate
- MIDI message (if configured)
- MIDI file (if configured)
- Track names
songs –init
Generate default song configurations:
|
|
Creates a song.yaml file in each subdirectory using:
- Folder name as song name
- WAV files as tracks
- MIDI files for MIDI playback
- Files starting with
dmx_for light shows
gRPC Control Commands
These commands connect to a running mtrack player via gRPC.
play
Start playback:
|
|
Start from a specific time:
|
|
stop
Stop playback:
|
|
previous
Navigate to previous song:
|
|
next
Navigate to next song:
|
|
switch-to-playlist
Switch between playlists:
|
|
status
Get current player status:
|
|
active-effects
View all active lighting effects:
|
|
cues
List all cues in the current song’s lighting timeline:
|
|
System Commands
systemd
Generate a systemd service file:
|
|
verify-light-show
Validate a light show file:
|
|
Validate against configuration:
|
|
Global Options
–version
Show version information:
|
|
–help
Show help for a command:
|
|
Related Documentation
- Usage Guide - How to use these commands
- gRPC Control - gRPC control details
- Configuration - Configuration reference