# The menu loop WATCHED, not converted: three wraps, timed by wall clock.
#
# 2026-08-30. tools/re-capture/xma_readoff_trace.py tails the Apu debug log
# and stamps each 'Looped Data' read_offset with the wall clock as it arrives.
# That gives the loop period in seconds with NO bits-to-time conversion --
# which is the step menu-bgm-loop-fields-conflict.md showed to be invalid.
#
# WRAPS (each ctx from its own loop_end to its own loop_start):
#   t= 65.07  ctx1  26,216,351 -> 3,542,945     ctx0  25,640,423 -> 3,610,911
#   t=126.63  ctx1  26,216,351 -> 3,542,945     ctx0  25,640,423 -> 3,610,911
#   t=188.69  ctx1  26,216,351 -> 3,542,945     ctx0  25,640,423 -> 3,610,911
#
# BOTH CONTEXTS WRAP AT THE SAME INSTANT, three times. They stay
# sample-synchronous, which is what two stems of one performance must do and
# what the linear conversion's 62.34-vs-63.29 s could not deliver.
#
# CYCLE: 126.63-65.07 = 61.56 s ; 188.69-126.63 = 62.06 s ; mean 61.81 s.
# The audio measurement (menu-bgm-loop-measured.txt) gave 61.93 s from an
# autocorrelation that used no wave at all. 0.2 % apart, different instruments.
#
# 🔴 LINEARITY REFUTED AGAIN, internally: the fitted rate over the clean
# stretch 10..60 s is 341,394 bits/s, while the cycle covers 22,034,741 bits
# in 61.81 s = 356,491 bits/s. 4.4 % apart within one stream, so bit offsets
# cannot be converted to seconds by any single rate.
#
# 🟡 loop_start's POSITION IN THE WAVE IS NOT DETERMINED BY THIS RUN.
# Offsets below loop_start (32 .. 3,605,682) are played exactly ONCE, before
# the first wrap, and this trace stamped that whole stretch at t=0.002 --
# 616 samples spanning offsets 32..2,559,033 in one batch, because the trace
# started after the music did and read the log's backlog in one gulp.
# A linear back-extrapolation suggests ~9-13 s, but linearity is exactly what
# is refuted above, so that is an indication and not a measurement.
#
# WHAT IS SETTLED: the loop region begins WELL INTO the wave, not at ~0.25 s.
# 3.6 M bits is 11.6 % of the stream by any reading; at the cycle's own mean
# rate it is 10.1 s. The audio locator's placement is refuted.
