Why percussion and voice
Many Muslim families avoid music with instruments, and it is common for a game to be played with the sound off for that reason. We wanted families to be able to play Barakah Kart with the sound on. So the default music is percussion and wordless voice only: frame drums, hand drums, claps, stomps, beatboxing and hums. Full music, with melodic instruments, is there for those who want it, but only if you choose it in Settings.
Sound effects are separate from music, so you can turn the music off completely and still hear the engines, the drifts and the items.
No audio files at all
There is not a single recorded sound in the game. Every drum hit, engine note and voice is built at run time with the browser's Web Audio API, from oscillators, noise and filters. That keeps the download small, means there are no samples to license, and lets the music react to the race: a final-lap layer comes in on the last lap, and drifting, jumps and landings have their own sounds.
The default music uses only a fixed list of voices: the daf and riq frame drums and the dum, tek and ka strokes of the darbuka, claps, snaps and stomps, taiko drums for Tokyo, brushes for Paris, a samba bateria for Rio, beatbox for New York, and wordless hums and shouts. Each World Tour city has its own groove, written in that tradition's idiom rather than copied from recordings; Giza, for example, uses the standard maqsum and sa'idi rhythms.
A test that listens
Saying 'no instruments' is easy; keeping it true while agents keep adding sounds is harder. So there is a test that plays the default music for every cue on every world, including the final-lap layer, while spying on every melodic instrument in the code. If any of them is called even once, the test fails. Another test checks that every voice the default music uses is on the percussion-and-voice list.
On the Makkah and Madinah worlds there is no music at all, in any setting: only ambient sound such as wind and birds. Nothing anywhere in the game uses the call to prayer or recitation.
What is next for the sound
Each city's groove should really be checked by someone from that city, and that is still on our list. If you are from one of the World Tour cities and something sounds wrong to you, we would love to hear about it.