In our previous post, we described how we used an ESP32S3 with camera to read the screen of commercial tuner, the Peterson Strobe App for Android to provide a tuner for vision impaired musicians. Peterson claim the same +/-0.1 cent accuracy as their dedicated strobe tuners. The App costs around US$10. 

The Peterson App displays the cents numerically e.g. “+12.3”.

We have now ported the ESP32 software to Android. We have installed our app, using Android Studio, with Developer Options enabled on the phone. Once installed the app is independent of Android Studio. We no longer need an ESP32, Camera, jig, etc. We use a phone, an audio adaptor, a pickup and earphones. Each component is commercially available.

Our Android app and Peterson Strobe app work together. The apps can be started by Voice commands (using Google Voice Access).  Our app uses the Android media projection API to get the cents from the Peterson App.

We capture the cents many times per second.

We then generate beeps that go to earphones:  the left ear for flat and the right ear for sharp.

We generate 20 beeps a second at 20 cents (or more). The tempo reduces to 2 beats a second at 2 cents. The beeps have a 2000Hz frequency and last for 20 milliseconds.

Below 2 cents, the tempo ranges from 20 beeps a second at 2 cents and reduces to one beep a second at 0.1 cents. These beeps have a 200Hz frequency and last for 10 milliseconds. They are short clicks and easily differentiated from the beeps for higher cents.

The beeps are adjusted as the string is adjusted, and are updated many times a second.

When the cents are below 0.1, a tone is sent to both ears to signal successful tuning. This tone is at 500Hz for 100milliseconds.

Depending on the instrument quality, it may not hold +/-0.1 cents accurately, in which case the user gets beeps in alternate ears as the instrument wavers above and below 0 cents.

We use a pickup connected to the phone’s audio socket to input the instrument pitch. This is immune to other noise in the room. We initially used the Peterson Pitch Grabber, but Peterson have discontinued that product. We have also used the GoTune AppClip. It is currently available, but also discontinued. We have also used the iRig adaptor with a generic 6.5mm piezo pickup. Note that a 6.5mm piezo pickup cannot simply be adapted to 3.5mm – the signal needs to be converted to an appropriate level for mic input, using iRig or similar.

We split the 3.5mm TRRS phone audio connector into mic (for pickup) and earphones (for feedback).

For newer phones, without an audio socket, we have used a bi-directional TRRS to USB-C adapter. It is important to get a bi-directional adaptor that converts mic input as well as earphone output.

We have tested the tuner with various stringed instruments (from cheap ukelele to concert quality mandolin) using an Oppo A79 Android phone and have found it accurate and viable for a blind musician to tune an instrument in a noisy environment.

Our App is self-adjusting, to select the region of the phone displaying the cents and light intensity. It can also capture the shape (fingerprint) of the numbers if the supplied fingerprints don’t work. Thus, we support differing fonts, sizes and locations. These steps are only necessary at setup. They are retained.

We expect the approach will work with any Android phone that supports the Peterson Strobe App or any other Android based tuning app that displays cents.

We are not yet conveying the note. In general, musicians seeking +/-0.1 cents accuracy are using instruments that never drift into the next semitone, so our tuner enables bringing the string back to its semitone. Further development will read the note from the phone screen and speak it every time it changes.

We have asked Peterson to build this into their Apps.

Contact Tadvic if you would like more information, including construction notes and a copy of the Android code.