Add MediaRecorder 1ch experiment and demo panel, doc consistency fixes#23
Merged
Conversation
…y fixes
- src/experiments/mr1ch.{html,js}: standalone 1ch MediaRecorder research
experiment — direct mic capture, exposes the start-timing bias that the
2ch experiment eliminates; linked from src/index.html
- demo: new "MediaRecorder 1ch" panel showcasing
recording-mode="mediarecorder-1ch" (multi-run, aggregates, Chrome 78
baseline), mirroring the AudioWorklet panel
- src/experiments/mr2ch.js: AudioContext-before-getUserMedia ordering,
MediaRecorder.stop() safety in catch path
- README: docs site link, npm-safe absolute image URLs, Node version
wording (18+ minimum, 22 via .nvmrc, 24 in docs CI)
- docs: index.md snippet now creates AudioContext before getUserMedia;
install.md Node requirement aligned with package engines field
- agents docs: prepublishOnly claim corrected, draft-notice guidance
marked resolved, session handoff updated
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New: MediaRecorder 1ch research experiment
src/experiments/mr1ch.html+mr1ch.js— standalone single-channel MediaRecorder experiment for comparison againstmr2ch. Records the mic directly frominputStream, plays the MLS reference toac.destination, and cross-correlates the decoded recording against the pre-generated MLS buffer. Deliberately exposes the start-timing bias betweenMediaRecorder.start()andnoiseSource.start()that the 2ch experiment eliminates.src/index.htmlunder Experiments.New: "MediaRecorder 1ch" demo panel
demo/js/mr1ch.js+demo/index.html— ninth demo panel showcasingrecording-mode="mediarecorder-1ch"(multi-run with aggregates), mirroring the AudioWorklet panel. Panel copy documents when to use the fallback (stereo→mono downmix in the default mode) and warns that measurements contain an unknown start-timing bias, not directly comparable with the 2ch or AudioWorklet panels. Respects the demo's Safari 14 / Chrome 78 syntax baseline.Fixes
src/experiments/mr2ch.js— AudioContext created beforegetUserMedia;MediaRecorder.stop()safety in the catch pathREADME.md— docs site link added; image URLs switched to absolute raw.githubusercontent URLs so they render on npmjs.com; Node version wording corrected (18+ minimum perengines, 22 via.nvmrc, 24 in docs CI)docs/index.md— homepage snippet now creates the AudioContext beforegetUserMedia, matching current guidancedocs/install.md— Node requirement aligned with the packageenginesfieldagents/docs —prepublishOnlyclaim corrected tobuild:component:all, draft-notice guidance marked resolved, session handoff updatedTest plan
npm test,npm run typecheck,npm run build:component:all,npm run docs:build,npm pack --dry-runall pass🤖 Generated with Claude Code