What is the MusicalConductor App?
MusicalConductor is an iOS app that acts as a gamepad for your Espressivoapplication. It uses the motion sensor to control musical elements such as tempo, velocity, and articulation. Furthermore, it offers a number of buttons to remotely control the application.
How Do I Establish a Connection?
The MusicalConductor app communicates over Bluetooth with the Espressivoapplication. To establish a connection, the app needs to advertise its service and the counterpart then scans for such a service.

Advertising the service of the MusicalConductor app
How Do I Assign Input Elements to Musical Elements?
You don’t. The assignments are left to the Espressivo application. The MusicalConductor app just offers buttons and a sensor. This is similar to a gamepad.

Buttons and sensor of the MusicalConductor app
It is the Espressivo application’s responsibility to assign input elements to musical elements. All settings and changes are propagated back to the MusicalConductor app. In our case, Button 2 is assigned the Start/Stop function and a rotation around the X-axis is used to control the tempo.

Assigned musical elements
By the way, the three components of the sensor are passed as an angle around the X-axis, an angle around the Y-axis and the overall acceleration value.