After spending weeks looking into Android PDF libraries, the Mirror API seemed like a much more logical choice to use to deploy a musical score. Google supports several programming languages to use with the API: Go, Java, .NET, PHP, Python, and Ruby. Due to curiosity and a fondness for the language, I decided to use Python.
After downloading the quick start project, I created an application on Google App Engine. Since this application was designed to contain Armenian Dances by Aram Khachaturian, the application was titled “CUWindsKach” and is accessible at: [http://cuwindskach.appspot.com]. After editing
client_secrets.json, generating a
session.secret file to store session cookies, and editing
app.yaml to include the name of the application, the Python application was ready to deploy.
Once it was launched, the next step was including the scores. After scanning in the condensed score, I divided it up into 640x360 images, the size of Glass’s display, using Photoshop. A simple form hooked into the Python application to send the image.
Here is the form that serves the image to the backend:
Here is the backend Python code that processes the HTML form.
Any user with Glass can navigate to this page and install the score to Armenian Dances on his or her Glass. It is possible to change this, however, using the settings in Google App Engine. One possible improvement for this application would be to bundle the images together. This way, if the user received a notification while they were installing the score, it would not be placed in between the pages in the score. Also, a single send button would be helpful; currently the user needs to click for each page of the score.
One clear limitation of Glass is the screen size. To combat this, Dr. Turner and I discussed the idea of a salient score that contains only the information necessary to conduct a work. As each conductor’s needs are different, each individual would likely need to create his or her own salient score. This would allow the scores to be as minimalistic as possible. Below is one possible salient score of the opening of Gazebo Dances.
This score only contains time changes and other landmarks that are necessary to conduct the work. If a salient score is used in rehearsal, a full score is necessary to have nearby for reference.
To control page turns, a Bluetooth controller is optional, but recommended. To set this up, the native Android
Settings.apk file must be sideloaded on the device. Dan McLaughlin’s provides the file here. This application can then be started with the following command:
adb shell am start -n com.android.settings/com.android.settings.Settings
After the control panel displays, it is possible to pair a keyboard or other Bluetooth device. After the pairing process is complete, pages can be navigated with the left and right arrows on the keyboard.