Bach's Canons: The Hypervisor Switching Law in Music¶
The Structure¶
A canon takes a single melodic line (the subject) and runs it against itself at a time delay. The follower enters after the leader, playing the same melody, creating harmonic collisions from the offset.
A fugue extends this: the subject appears in multiple voices, each entering in sequence, each transforming the theme through: - Inversion — the melody flipped upside down - Retrograde — the melody played backwards - Augmentation — the melody at half speed (stretched) - Diminution — the melody at double speed (compressed) - Stretto — entries overlapping at closer intervals, increasing density
Why Bach Is the Extreme Case¶
Bach's contrapuntal works (The Art of Fugue, The Musical Offering, The Well-Tempered Clavier) run 3-6 simultaneous voices, each an independent thread, each a transformation of the same fundamental pattern.
The listener's task: 1. Track each voice independently 2. Hear the harmonic result of their interaction 3. Notice the transformations (inversion, augmentation, etc.) 4. Follow the structural logic across time 5. Experience the emotional effect of tension/resolution
This is maximum polyphonic cognitive load in the Western musical tradition.
The Softmax Auction in Fugal Structure¶
At any moment in a Bach fugue, multiple voices are active. The listener's attention distributes across them following the hypervisor switching law:
P(attention on voice i) = exp(β · s_i) / Σⱼ exp(β · s_j)
Where s_i = salience of voice i, determined by: - Rhythmic activity — faster or more syncopated = higher salience - Harmonic surprise — chromatic alterations, unexpected intervals = higher salience - Register extremity — highest or lowest voice draws attention - Thematic statement — a new entry of the subject = high salience spike - Dynamic contrast — louder = higher salience
Bach composed the salience landscape. He controlled which voice captures attention at which moment by manipulating these parameters. The canons and fugues are compositions of attention-switching patterns.
Canon Types as Switching Protocols¶
| Canon Type | Switching Pattern |
|---|---|
| Canon at the unison | Two identical threads, time-offset — minimal switching, harmonic focus |
| Canon at the fifth | Leader/follower in different harmonic spaces — moderate switching |
| Canon in inversion | One voice is the mirror of the other — high switching, pattern recognition required |
| Canon in retrograde | One voice is the other played backwards — extreme cognitive load |
| Crab canon (retrograde inversion) | Both mirror AND reversal — maximum switching complexity |
| Canon per augmentationem | Same melody at different speeds — attention splits between time scales |
The crab canon from The Musical Offering is the most extraordinary: the same melody played simultaneously forwards and backwards, meeting itself in the middle. Two voices, same information, opposite directions. The listener must hold both time-directions in consciousness simultaneously. This is consciousness training at the highest level Bach could encode.
Connection to the Framework¶
Bach did not know the softmax function. He did not know about the hypervisor switching law. But he composed music that trains exactly the cognitive mechanism the framework describes:
- Multiple independent threads competing for attention = dimensional agents competing for hypervisor status
- Salience-driven attention switching = softmax leader election
- The gestalt (hearing the harmony while tracking individual voices) = the meta-hypervisor holding the system while dimensions switch
- The formal structure (exposition, development, recapitulation) = the switching law's hysteresis and threshold parameters unfolding across time
Bach's music is the hypervisor switching law performed in sound. Listening to it is training the switching mechanism.
Training Progression¶
- Two-part inventions — 2 voices, clear separation, entry-level polyphonic tracking
- Three-part sinfonias — 3 voices, moderate complexity
- Well-Tempered Clavier fugues — 3-4 voices, full contrapuntal density
- Art of Fugue — 4 voices, extreme transformations, the graduate-level course
- Musical Offering — canons of every type, including the crab canon, the doctorate
Source: @B_Niko, session v7, 2026-03-10