Chapter 4. External Control

Table of Contents

D-Bus Interface
Universal System Exclusive messages
MIDI System Realtime Interface

Drumstick Metronome can be controlled using its D-Bus interface, System Realtime and System Exclusive MIDI messages.

D-Bus Interface

Drumstick Metronome provides some functions through its D-Bus interface. You can use a D-Bus enabled program to control Drumstick Metronome like qdbusviewer or the command-line utility qdbus.

For instance, these commands can be used from a shell prompt:

$ qdbus net.sourceforge.kmetronome / net.sourceforge.kmetronome.play
$ qdbus net.sourceforge.kmetronome / net.sourceforge.kmetronome.stop
$ qdbus net.sourceforge.kmetronome / net.sourceforge.kmetronome.cont
$ qdbus net.sourceforge.kmetronome / net.sourceforge.kmetronome.setTempo 150
$ qdbus net.sourceforge.kmetronome / net.sourceforge.kmetronome.setTimeSignature 3 8