Claudio Pietronik

The key, and who decides it

One tonality, three places to set it, and a precedence that never guesses: the cable beats the air, the timeline beats the knob, and everything falls back to the project key.

The key, and who decides it
The project key, opened from KEY on the transport bar. Setting it does more than store two words: the wheel shows the scale, and HARMONIC ANALYSIS spells out every chord the key implies — the seven triads and their sevenths, with the notes of each. This is the default every module listens to until something overrides it.

Dozens of modules need to know what key the music is in — quantizers, harmonizers, arpeggiators, chord builders, the melody walkers. Abit does not make each of them ask you separately. There is one tonal context, published on a bus, and three places from which it can be set. What follows is not a convention: it is how the code resolves, in order.

1 · The project key (the transport)

The KEY button in the transport bar opens the tonal circle — twelve pitch-class dots, the scale's polygon, the tonic glowing. What you set there becomes the project key: technically, the default broadcaster on the context bus. Every module that has not been told otherwise hears it. This is the Ableton-shaped default: set the key once, the whole rack agrees.

2 · TonalScale on the canvas (the broadcaster)

A TonalScale module is a tonal broadcaster: it publishes a tonic and a scale, and any receiver can listen to it — either through an explicit Context cable, or wirelessly by picking it from the receiver's MAP menu. Several TonalScales can coexist: one section of a patch can live in a different key from another, and one of them can be nominated as the project key.

The two transports are additive, not rivals. A cable is a visible connection you can trace with your eyes; a wireless map is the one-to-many gesture for when a dozen modules should follow one source without a dozen cables crossing the canvas.

3 · The KEY lane in Arrange (the driver)

Arrange's KEY lane is where a piece modulates: a key change written at bar 33 is a key change at bar 33. Mechanically it is a driver — every block it pushes its tonic and scale as an override into the broadcaster, which consumes the override ahead of its own knobs and re-broadcasts the resolved value to everyone listening.

  • The timeline wins while it is driving: the TonalScale's own knobs are not lost, they are outvoted.
  • The override is consumed with an exchange, so the moment the lane stops pushing, the broadcaster reverts to its knobs by itself — nothing has to be cleaned up, and nothing gets stuck in a key you left behind.
  • With no TonalScale mapped at all, the KEY lane is the tonal authority and drives the project key directly.

The precedence, in order

When a module asks “what key am I in?”, this is the sequence it actually walks:

An explicit Context cable, if one is patched

What you wired is what you meant. A cable always beats the air.

The broadcaster this module is mapped to

Its wireless MAP choice — and that broadcaster may itself be driven by the KEY lane, which is how a modulation reaches a module with no cable attached.

The project key

An unmapped module is not deaf: it falls back to the default broadcaster, so “everything hears the project key” holds without any wiring.

Its own knobs

If there is no project key at all, the module uses whatever tonic and scale are set on its own face — exactly as it behaved before any of this existed.

The chain reads in one sentence: cable → mapped broadcaster → project key → own knobs, and a driving KEY lane overrides the broadcaster at step two. Nothing in that list can be true at the same time as something above it, which is why a module never has to guess.

Where the scales come from

A key is a tonic and a scale index, and the scale table is the app's own dictionary of 48 — the seven modes, the minor family, the melodic and harmonic derivatives, the pentatonics, and the Japanese and world scales. Kumoi is as sayable as C major, everywhere: in the transport's circle, on a TonalScale, in the KEY lane, and in Compose's generator cart.