# Golden Ratio Maximus

Golden Ratio Maximus was published in Taper #12: Tools, Spring 2024.

An extended composition for bells, composed with gsiril. Duration: 1.618 days.

12 bells

c = 2(5(b, +12), b, +1234)
b = a, single, ~a, ~plain
a = (14 (bob, 6 plain, bob), bob, 6 plain)

lead = &-T-T-T-T-T-T

plain  = lead, +12
bob    = lead, +14
single = lead, +1234

# 1 Implementation

The code execution begins when the page visitor clicks on the play button, because audio can only start following interaction with the page due to modern browser policies.

12 bell emoji of different sizes are added to the HTML, each with an audio oscillator (tuned in spooky-sounding 11 tone equal temperament) with gain control.

The current permuation of the bells is stored in the list a.

The E() async function slowly loops through the permuted bells once, triggering the oscillators’ gain with a decaying envelope. The bell graphic is removed and reinserted into the HTML, to cause its CSS animation to be retriggered.

There follow several nested functions that permute a by swapping adjacent elements, forming the structure of the composition ported from gsiril notation. These all need to be async and await their callees because they eventually call E(), which sleeps between bell tolls.

# 2 Screenshot

Static snapshot for archival purposes only:

Golden Ratio Maximus screenshot

# 3 Audio

One minute excerpt for archival purposes only:

# 4 Video

(Maybe later.)