beautypg.com

Appendix b – control protocol – Teac US-224 User Manual

Page 37

background image

37

Appendix B – Control Protocol


Purpose

Provide simple, effective integration between the US-224 and host software applications.


Introduction

The US-224 provides digital audio I/O, MIDI, and control surface functions in a single affordable
USB-based product. While the audio and MIDI I/O follow established which are easily interfaced
with host applications, full integration of the control surface aspects of the US-224 requires a set
of messages to be defined which permits two-way communication of control information between
the host application and US-224.


Functional Groups

The US-224's control surface are divided into several major functional groups:

Transport and Locate switches and status LED's

Per-channel controls (faders, switches, and LED's)

Bank switching buttons and LED's

Function switches, LED's and continuous "data wheel"


Communication model

Standard MIDI controller and sysex messages will be used to communicate between the host and
US-224. In many cases, the commands transmitted by the US-224 are identical to those
generated by the JL Cooper CS-10 controller. In general, it is desired that overall system "state
information" be maintained by the host application, rather than in the US-224. As an example,
here is how a change in transport state from STOP to PLAY might be communicated:

User presses PLAY button on US-224.

Play-button command is sent via USB to host application as MIDI .

Application receives Play message from the "US-224 Control" Midi input device.

Application switches to PLAY mode, just as if user had performed the operation with a

mouse-click.

Application sends Transport Update message to "US-224 Control" Midi output device, which

is sent via USB to the US-224.

US-224 interprets transport-update command, and responds by activating the PLAY LED.


In this example, the US-224 doesn't "know" the state of the transport. It has simply sent
command indicating the button-press, and responded to the transport-update command from the
host by lighting the appropriate transport LED.