The king of instruments
The pipe organ is one of the largest and most complex musical instruments. Air from a wind supply is sent through pipes of many sizes, each producing one note. A large organ may have thousands of pipes, arranged in sets called ranks, each with its own tone colour.
What a stop does
The organist chooses which ranks sound by pulling knobs or pressing tabs called stops. Each stop brings in a rank of pipes with a particular character: principals with a bright, clear tone, flutes with a soft, round sound, strings with a thin, keen voice, and reeds with a buzzing, brassy timbre. Combining stops creates many different sounds.
Recognising stops
A model could be trained to recognise which stop or combination of stops is playing from a recording. This might help catalogue organ recordings, teach students or document historic instruments. The model must learn the tone colour of each stop.
A melody shortcut
Suppose an organist records each stop with a different tune: a hymn on the flute stop, a scale on the trumpet stop and a folk song on the principal. A model might learn to recognise the tunes instead of the stops. It would score perfectly on the training data, but for the wrong reason.
Cross the choices
To prevent this, recordings should cross stops and tunes deliberately. Each stop should be recorded playing several different tunes, and each tune should be played on several different stops. Then the tune no longer predicts the stop, and the model must listen to tone colour.
The same phrase, different stops
A particularly useful set of recordings uses one short phrase played on many different stops. The notes, rhythm and tempo are identical; only the stop changes. Any difference in the model's prediction must come from the sound of the stop.
Unseen melodies
The test set should include melodies the model has never heard. If it correctly identifies stops in these new tunes, it has learned the stops' sounds. If it fails, it may have relied on familiar melodies.
Spotting the problem
A clear sign that a model has learned the tune is that its stop prediction follows the melody. If the same melody played on a different stop still produces the original stop label, the model is recognising the tune, not the sound.
Pitch and register
Organ stops are labelled by the length of their longest pipe, such as 8-foot, which sounds at normal pitch, or 4-foot, which sounds an octave higher. A model must distinguish stops that differ in pitch from those that differ in tone, and tests should include both kinds of difference.
Responsible testing
The NIST AI Risk Management Framework encourages developers to design evaluations that reveal hidden shortcuts. Crossing factors in the data is one of the simplest ways to do this.
Every organ is different
No two pipe organs sound exactly alike. A flute stop on one organ may sound quite different from a flute stop on another, depending on the builder, the pipes and the building's acoustics. A model trained on one organ should be tested on others, holding out whole instruments, to see whether its knowledge of stops transfers.
Room acoustics
Large churches add long echoes that blend notes together.
Stop combinations
Organists often combine several stops at once, creating blended sounds that a model must also learn to recognise.
Labelling stops
Organists can note exactly which stops were drawn for every recording.
Try the arithmetic
If an organ has 10 stops and an organist records 5 tunes on each, the crossed dataset has 10 × 5 = 50 combinations, with every tune heard on every stop.
The idea to take away
If each stop is recorded with a different tune, a model can use the melody as its label. Cross the choices so each stop appears with several tunes and each tune with several stops, and test with unseen melodies.
Sources & further reading
Figures in the example are illustrative. Photograph: Neunkirchen am Brand Kirche Orgel-20210411-RM-155230.jpg by Ermell, CC BY-SA 4.0, via Wikimedia Commons; cropped and resized. Reference organisations do not endorse this website.

