Usage Guide
How to use mtrack to play songs and manage playlists
Usage Guide
This guide covers the basic usage of mtrack, including playing songs, managing playlists, and controlling playback.
Player Behavior
mtrack follows a specific behavior loop:
- Startup: mtrack starts on the first item in your playlist. The item is selected, but not playing.
- Navigation: While no song is playing, you can navigate the playlist using
nextandpreviousevents. These are inactive when a song is playing. - Playback: Use the
playevent to start a song, andstopto stop a currently playing song. While a song is playing,playdoes nothing; while stopped,stopdoes nothing. - Playlist Switching: Use
all_songsto switch to a playlist of all songs in your repository, orplaylistto return to your defined playlist.
Starting the Player
Start mtrack with your configuration file:
|
|
The player will start and wait for control events.
Playing Songs Directly
You can play a song directly without starting the full player:
|
|
Options:
-d, --device: Audio device name-m, --midi-device: MIDI device name (optional)-s, --dmx-dim-speed: DMX dimming speed modifier--dmx-universe-config: DMX universe configuration
Controlling Playback
Via MIDI
Configure MIDI control events in your configuration file, then send the appropriate MIDI messages from your foot controller.
Via gRPC
Use the mtrack command-line interface:
|
|
Via OSC
Send OSC messages to the configured OSC port. Default addresses:
/mtrack/play- Start playback/mtrack/prev- Previous song/mtrack/next- Next song/mtrack/stop- Stop playback/mtrack/all_songs- Switch to all songs playlist/mtrack/playlist- Switch to defined playlist
Playlists
Playlist Format
A playlist is a simple YAML file:
|
|
Songs are played in the order listed, but you must trigger each song manually.
Viewing Songs
List all songs in your repository:
|
|
This shows:
- Song names
- Duration
- Number of channels
- Sample rate
- MIDI message (if configured)
- MIDI file (if configured)
- Track names
Generating Song Configurations
Generate default song configurations from your audio files:
|
|
This 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
Status Information
Player Status
Check the current player status:
|
|
Active Effects
View active lighting effects:
|
|
Cues
List all cues in the current song’s lighting timeline:
|
|
Device Discovery
Audio Devices
List available audio devices:
|
|
Output format:
Devices:
- DeviceName (Channels=22) (Alsa)
Use the device name (before the parentheses) in your configuration.
MIDI Devices
List available MIDI devices:
|
|
Output format:
Devices:
- DeviceName:PortName 14:0 (Input/Output)
Use the device name (before the colon) in your configuration.
Related Documentation
- Configuration - Setting up your player
- MIDI Control - Detailed MIDI control setup
- gRPC Control - Remote control via gRPC
- OSC Control - OSC integration