# Accompaniment collection

Twelve original backing arrangements, all rooted in C major or C minor. They use
NOTE's selected instrument, leave the top line open, and loop until stopped.
Playing live notes does not interrupt them.

- Aquarium: C major, Light through water arpeggio, 95 BPM. The study’s original phrase loops with space for live playing.
- After the Rain: C major, steady ballad, 62 BPM.
- Pocket Motion: C minor, sustained modal funk, 96 BPM. Extended voicings ring for two bars over a connected, syncopated bass.
- Side Street: C major, smooth electric soul, 100 BPM. Long major/minor ninth voicings and gentle bass movement leave space to play.
- Coastline: C major, bossa, 104 BPM.
- Blue Hour: C minor, modal ballad, 76 BPM.
- Still Water: C major, warm 12-bar jazz blues, 76 BPM; two choruses.
  Bass stays at C3 or above; ninths, thirteenths and a ii–V turnaround retain the jazz color.
- Velvet Room: C minor, minor ballad, 70 BPM.
- Lantern Walk: C major, light swing, 104 BPM.
- Open Sky: C major, floating waltz, 88 BPM, 3/4.
- Dorian Swing: C minor, Dorian shuffle, 98 BPM. Arranged from Tim's own keyboard recording: a C pedal under rocking parallel thirds (E♭–G, F–A, G–B♭), with a B♭–B–C bass climb.
- Invention: C minor, two-part invention after J. S. Bach, 76 BPM. Both hands play; see below.

Every arrangement supplies a fixed beat grid. Starting playback updates the BPM
and aligns an enabled metronome; enabling the click mid-song joins that same grid.
The metronome's on/off choice is preserved. Loop boundaries retain the original
clock origin, exclude the coda, and fall on full bars. After the Rain now uses
straight beat timing, with its existing C-major harmony retained.

Rebuild with `python3 scripts/compose-accompaniments.py`,
`python3 scripts/compose-grooves.py`, `python3 scripts/compose-after-the-rain.py`,
and `python3 scripts/compose-dorian-swing.py`.
The three groove arrangements use repeating bass roots, quiet three-note midrange
chords, no lead or fills, and no increases in density on later choruses. These
are instrumental comping patterns, not drum recordings. All material is original.

## Archived Bach demo

J. S. Bach, Prelude in C major, BWV 846 — complete 35-bar prelude.

Note pitches, onsets and releases were extracted from the Mutopia Project's
public-domain MIDI edition, maintained by Tobias Erbsland, dated 2011-09-12:
https://www.mutopiaproject.org/cgibin/piece-info.cgi?id=5
https://www.mutopiaproject.org/ftp/BachJS/BWV846/wtk1-prelude1/wtk1-prelude1.mid

Source MIDI SHA-256:
874e07d0479542971bfceaf420d6117da8d602d89d26eea4610e7dd1ef58bf26

The edition's LilyPond header explicitly places it in the public domain.
Entries in bach-prelude-c.json are [quarter-note beat, note-on flag, MIDI pitch,
velocity]. Timing is retained in beats, played at 76 quarter notes per minute.
NOTE adds restrained phrase dynamics and bass/downbeat emphasis. Playback uses
NOTE's selected instrument; no third-party audio recording is included.

## Aquarium — Light through water

The Aquarium study's original 16-note arpeggio is available as an accompaniment.
It keeps the same pitches, 630 ms pulse, overlapping 1100 ms notes, and rotating
three-note accents. Three passes make its 30.24-second loop. Dynamics are scaled
together to leave room for live playing. It uses the selected NOTE instrument.
Rebuild with `node scripts/compose-aquarium.mjs`.

## Invention in C minor

An original two-part invention in the style of J. S. Bach. It does not quote any
existing work. A one-bar subject in running sixteenths is answered in the other
hand over an eighth-note countersubject. Episodes built from the subject's head
move through circle-of-fifths sequences, a 7–6 suspension chain and a chromatic
lament bass. The piece passes through G minor, E♭ major and F minor before it
returns home. It closes with a dominant pedal, a deceptive cadence and a tonic
pedal ending on a Picardy third. The form runs 44 bars at 76 BPM (2:19), and
the loop covers the full piece.

Unlike the backings, it plays both hands, so it uses the upper keys (MIDI 38–86)
and fuller dynamics. Rebuild with `node scripts/compose-invention.mjs`; add
`--analyze` to print the two-voice harmony and voice-leading warnings.
