What does Harmonic Surprise, Shepard Tones and Musical Chills conclude, in numbers, about “The Dynamics of Chills: Skin-Conductance Delay, a Leaky Integrator with a Threshold, and Differences between Listeners”?

Answer: Chapter 4 combines a skin-conductance delay of 2.18 seconds with a leaky-integrator threshold model: only when violation and crescendo coincide does a chill fire, at second 102.00; of four hundred simulated listeners 68.8 % have chills, but only 21.2 % owe them to the violation.

Scope of the numbers: Its parameters are illustrative; all calculations are generated by its programs; it is not medical advice, claims no health effect, and is not marketing-compliance or legal advice. Chapter 1 writes harmony as a Markov chain: under an illustrative matrix a deceptive cadence carries 3.06 bits of surprisal and an authentic cadence only 0.51.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 102.00, 2.18

variant                       chills at s        peak V
violation + crescendo        102.00               4.68
crescendo, no violation      none                 3.86
violation, flat 70 phon      none                 3.47
neither                      none                 2.93
leak TAU s   chills at s (violation + crescendo)
     2.0     none
     4.0     none
     6.0     102.00
    10.0     66.00, 74.00, 88.00, 96.00, 104.00, 112.00
deceptive vi sounds at 102.00 s; with the 2.18 s delay of p41 the
skin-conductance peak is expected near 104.18 s
Show the full program
# Chapter 4. p42: a leaky integrator with a threshold, fed by harmonic
# surprisal and by the growth of loudness, decides when a chill fires.
#   dV/dt = -V/TAU + A * S(chord) * pulse + B * max(0, dN/dt)
# S = -log2 p from the ILLUSTRATIVE matrix of p11; N = loudness in sones,
# N = 2^((L - 40)/10) for L in phon. A chill fires when V crosses THETA
# upward; then 8 s of refractory time. A, B, TAU, THETA, the 120 s cue
# and its dynamics are ILLUSTRATIVE.
import math

CH = ["I", "ii", "IV", "V", "vi", "bVI"]
P = {
    "I":   [0.05, 0.15, 0.30, 0.30, 0.15, 0.05],
    "ii":  [0.05, 0.05, 0.05, 0.75, 0.05, 0.05],
    "IV":  [0.25, 0.10, 0.05, 0.45, 0.10, 0.05],
    "V":   [0.70, 0.02, 0.05, 0.08, 0.12, 0.03],
    "vi":  [0.05, 0.30, 0.35, 0.20, 0.05, 0.05],
    "bVI": [0.20, 0.05, 0.25, 0.40, 0.05, 0.05],
}
DT, T_END, BEAT = 0.25, 120.0, 2.0
A, B, TAU, THETA, REFR = 0.4, 0.2, 6.0, 4.0, 8.0
LOOP = "I vi IV V I vi ii V I IV V I vi ii V I".split() * 3
CLIMAX = "I IV V vi IV bVI V I I IV V I".split()
PLAIN = "I IV V I IV ii V I I IV V I".split()


def phon(t, cresc=True):
    if not cresc:
        return 70.0
    if t < 60:
        return 50.0
    if t < 104:
        return 50.0 + 40.0 * (t - 60) / 44
    return 90.0 if t < 112 else 90.0 - 5.0 * (t - 112)


def run(chords, cresc=True, tau=TAU):
    s = {}
    for i in range(1, len(chords)):
        a, b = chords[i - 1], chords[i]
        s[i] = -math.log2(P[a][CH.index(b)])
    v, last, fired, vmax = 0.0, -99.0, [], 0.0
    for n in range(int(T_END / DT)):
        t = n * DT
        n0 = 2 ** ((phon(t, cresc) - 40) / 10)
        n1 = 2 ** ((phon(t + DT, cresc) - 40) / 10)
        u = B * max(0.0, (n1 - n0) / DT)
        k = round(t / BEAT)
        if abs(t - k * BEAT) < 1e-9 and k in s:
            v += A * s[k]
        v += DT * (-v / tau + u)
        vmax = max(vmax, v)
        if v >= THETA and t - last >= REFR:
            fired.append(t)
            last = t
    return fired, vmax


print("variant                       chills at s        peak V")
for name, ch, cr in (("violation + crescendo", LOOP + CLIMAX, True),
                     ("crescendo, no violation", LOOP + PLAIN, True),
                     ("violation, flat 70 phon", LOOP + CLIMAX, False),
                     ("neither", LOOP + PLAIN, False)):
    f, vm = run(ch, cr)
    print("{:<28} {:<18} {:>6.2f}".format(
        name, ", ".join("{:.2f}".format(x) for x in f) or "none", vm))
print("leak TAU s   chills at s (violation + crescendo)")
for tau in (2.0, 4.0, 6.0, 10.0):
    f, vm = run(LOOP + CLIMAX, True, tau)
    print("{:>8.1f}     {}".format(
        tau, ", ".join("{:.2f}".format(x) for x in f) or "none"))
f, vm = run(LOOP + CLIMAX, True)
print("deceptive vi sounds at {:.2f} s; with the 2.18 s delay of p41 the"
      .format(BEAT * (len(LOOP) + 3)))
print("skin-conductance peak is expected near {:.2f} s".format(f[0] + 2.18))

Single source and citation

Fan, Y. (2026). Harmonic-Expectation Violation Entropy in Orchestral Scoring, the Shepard-Tone Illusion and the Dynamics of Musical Chills (Version 1.0.0), Chapter 4: The Dynamics of Chills: Skin-Conductance Delay, a Leaky Integrator with a Threshold, and Differences between Listeners. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-163 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026163,
  author    = {Fan, Yafu},
  title     = {Harmonic-Expectation Violation Entropy in Orchestral Scoring, the Shepard-Tone Illusion and the Dynamics of Musical Chills},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book