OSC Control
Controlling mtrack via Open Sound Control (OSC)
OSC Control
mtrack supports Open Sound Control (OSC) for remote control and status reporting, making it easy to integrate with OSC-capable controllers and software.
Configuration
Enable the OSC server in your mtrack.yaml:
|
|
Control Events
Send OSC messages to control the player. All control events require no arguments.
Play
Start playback:
/mtrack/play
Stop
Stop playback:
/mtrack/stop
Previous
Navigate to previous song:
/mtrack/prev
Next
Navigate to next song:
/mtrack/next
All Songs
Switch to all songs playlist:
/mtrack/all_songs
Playlist
Switch to defined playlist:
/mtrack/playlist
Status Events
mtrack broadcasts status information to the configured broadcast addresses.
Status
Current player status (stopped/playing) and elapsed time:
/mtrack/status "stopped" or "playing 1:23.456 / 4:14.000"
Current Playlist
The entire current playlist:
/mtrack/playlist/current "Song1, Song2, Song3, ..."
Current Song
The song the playlist is currently pointing to:
/mtrack/playlist/current_song "Song Name"
Elapsed Time
Time elapsed and total duration:
/mtrack/playlist/current_song/elapsed "1:23.456 / 4:14.000"
Custom OSC Addresses
You can customize all OSC addresses in your configuration:
|
|
TouchOSC Integration
A starting TouchOSC file has been provided in the mtrack repository. You can use this as a template for creating your own TouchOSC interface.
Use Cases
Mobile Control
Use an OSC app on your phone to control mtrack remotely.
Integration with DAWs
Some DAWs support OSC, allowing you to trigger mtrack from your recording software.
Custom Controllers
Build custom control interfaces using OSC-capable hardware or software.
Example: Using oscsend
Control mtrack from the command line using oscsend (from liblo-tools):
|
|
Example: Python OSC Client
|
|
Related Documentation
- Configuration - Complete configuration reference
- Usage Guide - General usage information
- gRPC Control - Alternative network control protocol