The interval that makes a hicaz
Hicaz is one of the makams Turkish music is built from, and what makes it sound like itself is a single interval: the gap between its second and third degrees. On a piano that gap is a minor third — 300 cents — and the result is the harmonic minor scale every film composer reaches for when a scene moves to a desert.
In Turkish practice the interval is narrower. The second degree sits a little high, the third a little low, and the distance between them closes to around 260 cents. That is not a detail for specialists. It is the difference between a makam and an impression of one.
What the chip actually wants
A SID voice is never told a note. It is told a 16-bit number, and on a PAL machine it plays f = n × 985248 / 2²⁴ — about 0.0587 Hz per step. There is no scale in there and no twelve of anything. A pitch outside equal temperament costs exactly what a pitch inside it costs: one number.
Worth saying plainly, because nearly all chiptune is equal-tempered and the hardware has nothing to do with it. The constraint lives in the tools. A tracker is laid out like a keyboard, twelve names to the octave, and what a tool will not let you type is what the music will not contain.
What LOKUM 64 does
Its note table has 103 entries. The first 96 are an ordinary chromatic run from C0 up to A♯7. The last seven are not notes in that sense at all: they are the pitches the hicaz needs, each a bent version of a note already in the table, and the music stream reaches them through their own events ($64–$6F) rather than by note number.
| Entry | Register | SID plays | Equal-tempered | Difference |
|---|---|---|---|---|
| 96 | 4004 | 235.14 Hz | B♭3 · 233.08 Hz | +15 cents |
| 97 | 2326 | 136.60 Hz | C♯3 · 138.59 Hz | −25 cents |
| 98 | 8007 | 470.21 Hz | B♭4 · 466.16 Hz | +15 cents |
| 99 | 4652 | 273.19 Hz | C♯4 · 277.18 Hz | −25 cents |
| 100 | 16014 | 940.43 Hz | B♭5 · 932.33 Hz | +15 cents |
| 101 | 9305 | 546.44 Hz | C♯5 · 554.37 Hz | −25 cents |
| 102 | 18609 | 1092.82 Hz | C♯6 · 1108.73 Hz | −25 cents |
Two numbers, sixty-three times
Every one of them is one of two bends. B♭ goes up by 15 cents; C♯ comes down by 25. Between them, where equal temperament would put 300 cents, the chip plays 260.
The hicaz calls for those bent pitches 63 times. The other piece in the game — a longa in makam nihavend, the one playing over the map — calls for them not once, because nihavend sits close enough to twelve-tone that bending it would be decoration rather than correction. The score only argues where there is something to argue about.
What it costs
Fourteen bytes of frequency table, and one branch in the event decoder.
That is the whole price of playing a makam in its own intonation on a machine from 1982, and it is why the scarcity of microtonal chiptune is a fact about tracker software rather than about sound chips. The SID was never the thing in the way.
One more number, for the pleasure of it. The 96th entry of the table, B7, is wrong: it should be 3951.07 Hz and it plays 3848.57. The register needed 67280 and holds 65535. At the top of the range as everywhere else, the chip’s only limit is how large a number will fit.