Skip to content

Bonsai 8: independent playlists, live-sync performance and responsive uploads - #3

Draft
AWD-tech wants to merge 25 commits into
mainfrom
feat/bpm-playlists
Draft

AWD-tech wants to merge 25 commits into
mainfrom
feat/bpm-playlists

Conversation

@AWD-tech

@AWD-tech AWD-tech commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Adds independent, saved BPM-sorted playlists for Deck A and Deck B. Either deck can browse and load another song while its partner continues playing; loading cues the selected deck paused, and PLAY starts it.

Desktop stem preparation now uses bounded worker batches for encoding and incremental checksums, with progress, cancellation and a responsive fallback. Import memory accounting includes pending decoded buffers and preparation workspace. Manual stems are not automatically separated, normalized or tempo-matched; the UI explains required 24 kHz/14-bit conversion and silent padding. The browser flasher also waits for the expected reset response/disconnection before closing, while preserving application-only commands and existing error checks.

0.4.12 hardware result: release blocked

0.4.12 was built from committed source 4d95761 and flashed application-only. Runtime identity, all five song entries, eight metadata sectors and 51 representative audio sectors passed preservation checks. All three CI jobs passed in run 39383418343.

Stable twenty-second tests with all eight gains at 256 show two failures: USB audio triggers source underruns at unity (292/303 without mirroring; 287/296 with 100 ms mirroring), while changing both decks to approximately 1.01x causes missing-plan underruns even without USB (207/207). With USB and mirroring, changed-tempo playback adds 156/155 missing-plan underruns and advances only about 6.9 seconds of source audio in 20.099 seconds. Dry unity and mirroring-only pass. No controls changed during these measured windows, and monitored storage/I2S/capture/clipping errors remain zero. Named USB captures are non-silent stereo, but playback is not clean. No release or site installer was published. See docs/sync-validation-0412.md.

Previous investigation and implementation

0.4.11 passed a stable 20-second eight-stem unity baseline but failed the original tempo test: A at 1x, B at approximately 1.02x, all eight gains full, no control changes and USB capture off. B incurred 131 missing-plan underruns and advanced only 140,057 source frames; source-starvation/error/clipping deltas remained zero. The actual-song capacity replay now reproduces comparable starvation. The older functional simulation allowed up to 64 worker slices per callback without charging elapsed MCU time, so its passing result did not establish real-time capacity.

Unreleased source changes reject isolated-onset scans once their existing conditions cannot succeed, and batch bounded analysis, source mixing and tail copying. Five paired actual-song host runs reduce median planner service time from 35.526 to 19.602 microseconds per grain (44.82% less time), with matching chosen-frame hashes and no persistent RAM increase. This excludes storage/decoding and is not measured SP-1 performance. These changes were subsequently packaged as 0.4.12 and failed the hardware tests above; the immutable 0.4.11 artifacts remain unchanged. See docs/sync-validation-0411.md for the evidence and timing limits.

Validation

  • Integrated source: nine C sanitizer suites, 59 Python tests, 114 audio screens and 600 simulated seconds pass without relaxed thresholds. The simulation is a correctness check, not proof of MCU capacity.
  • 64,008 exact engine/planner/scratch/PCM comparisons validate batched versus generic source mixing; the existing 11,352 renderer comparisons pass. Independent strict Cortex-M4 object compilation and source review found no blocker.
  • Website: 177 Node tests pass. Real hidden-tab preparation of four two-minute and four eight-minute stems had no main-thread tasks over 50 ms. Browser sleep/discard and physical transfer throughput are outside that test.
  • Native browser monitoring/mixer and desktop manual-WAV import checks pass; synthetic monitoring does not establish physical speaker output.
  • 0.4.11 application-only flash, runtime identity, five song entries, eight metadata sectors and 51 representative audio sectors passed preservation checks. This is not full application/audio readback.

The website changes were published to https://sp-1.xyz/ and byte-verified on October 20. Its installer remains 0.4.6; there is no verified-release promotion. This PR stays draft until physical tempo stability and listening, sustained recording/save/restart/export, browser listening/reconnection, browser-driven flashing and endurance pass. Recording's final metadata-acknowledgement ambiguity remains open. Detailed evidence is in HARDWARE_TEST.md, docs/sync-validation-0411.md and site/tests/UPLOAD_RESPONSIVENESS.md.

@AWD-tech AWD-tech changed the title Bonsai 8 0.4.6: saved BPM-sorted playlists for decks A and B Bonsai 8: independent deck playlists and 0.4.7 live-sync candidate Oct 18, 2026
@AWD-tech AWD-tech changed the title Bonsai 8: independent deck playlists and 0.4.7 live-sync candidate Bonsai 8: independent playlists, live-sync fixes and responsive uploads Oct 20, 2026
@AWD-tech AWD-tech changed the title Bonsai 8: independent playlists, live-sync fixes and responsive uploads Bonsai 8: independent playlists, live-sync performance and responsive uploads Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant