Input: a recording.
Output: one of 7 maqam families, from pitch alone.
The tonic is unknown, and the intervals do not follow equal temperament.
A model whose decisions can be interpreted in terms of maqam theory.
30 of 35 tuning systems in DiArMaqAr divide the octave into unequal steps.
Templates use Ronzevalle 1904 (24 pitch classes); other tuning systems are left for future work.
DiArMaqAr: K. Allami, I. Elkhansa, M. El Asal, J. Bakarji, “Culture-Specific Computational Musicology: A Case Study of DiArMaqAr,” ISMIR 2026 (companion paper).
CNN 94.0%, random forest 91.8%.
CNN on raw pitch: 68.2%. Every 25¢ of tonic error costs about 8 points.
Without the label, the tonic is found within 50¢ for only 48% of recordings; 60% of the errors are a perfect fourth off.
| \(h_t\) | octave-wrapped pitch histogram of time window \(t\) (\(T = 20\)) |
| \(\tau_k\) | DiArMaqAr maqam template \(k\) (\(K = 8\) shown; the 89% model adds 28 jins templates, \(K = 36\)) |
| \(s\) | circular shift: the tonic becomes a latent variable |
| \(B\) | 30 pitch bins of 40¢ |
Data: Oud taqasim, 104 solo improvisations; Cairo Congress 1932, 94 recordings from the ORD-CC32 corpus (B. Bozkurt, ISMIR 2025); Maqam-478, 421 Quranic recitations (S. A. K. Shahriar et al., J. King Saud Univ. CIS, 2021).
Attends to discriminative scale degrees rather than the shared tonic, e.g. Hijaz at its fourth (500¢).
Maqam-specific patterns along the shift axis: a single concentrated peak for Saba, broader attention for Bayat.
Rows are proportional time windows, which capture the coarse sayr of a piece.
Interactive and data-populated slides built with Claude Code.