--- layout: default title: Controlling Ardour with OSC ---

Open Sound Control (OSC) lets synthesizers and other devices communicate with Ardour. OSC devices can send commands relating to playback (such as play or stop), performance (such as volume, play, stop, and almost any other function (such as Edit, or Undo).

Ardour is probably one of the most OSC-controllable audio applications around, but as with all OSC-controllable apps, you can't do much without knowing what messages can be sent. This document describes the various categories of messages that Ardour understands. It is subject to change, particular the "Actions" part below, since this relates to the GTK GUI for Ardour rather than the backend.

Connect to Ardour via OSC

OSC support is not enabled by default, but can be turned on via Edit > Preferences > Control Surfaces. Once enabled, Ardour will listen on port 3819 by default. This port number can be changed by editing $ARDOUR_CONFIG and adding this line within the <Config> section:

  <Option name="osc-port" value="YourChoiceHere"/>

Transport Control

/ardour/transport_stop
/ardour/transport_play
/ardour/set_transport_speed [transport_speed]
where [transport_speed] is a float rangin from -8 to 8.
/ardour/ffwd
/ardour/rewind
/ardour/goto_start
/ardour/goto_end
/ardour/add_marker
(adds marker to the current transport position)
/ardour/next_marker
/ardour/prev_marker
/ardour/locate [sample_pos] [with_roll]
where [sample_pos] is the target position and [with_roll] is a bool/integer (whether you want transport to be kept rolling or not).
/ardour/loop_toggle

Editing-related

/ardour/undo
/ardour/redo
/ardour/save_state
(this is regular Session _> Save operatio)

Recording control

/ardour/toggle_punch_in
/ardour/toggle_punch_out
/ardour/rec_enable_toggle
/ardour/toggle_all_rec_enables
(toggles all tracks recording state). !currently toggles on but not off for 2.0 branch.

Track specific operations

For each of the following, [remote_id] is the remote_id or the track

/ardour/routes/mute [remote_id] [mute_st]
where [mute_st] is a bool/int representing the desired mute state of the track
/ardour/routes/solo [remote_id] [solo_st]
where [solo_st] is a bool/int representing the desired solo state of the track
/ardour/routes/recenable [remote_id] [rec_st]
where [rec_st] is a bool/int representing the desired rec state of the track
/ardour/routes/gainabs [remote_id] [gain_abs]
where [gain_abs] is a float ranging from 0 to 2 (0 being -infinite, 1 being 0dB and 2 being +6dB).
/ardour/routes/gaindB [remote_id] [gain_db]
where [gain_db] is a float ranging from -400 to 6 representing the desired gain of the track in dB.

Menu actions

Every single menu item in Ardour's GUI is accessible via OSC. There is a single common syntax to trigger the action as if it was selected with the mouse (or keyboard):

/ardour/access_action [action_name]

The list below shows all available values of [action-name] as of mid-March 2010 for Ardour 2.X. You can get the current list at any time by running Ardour with the -b flag.