Sound visualizer#54
Open
adyz wants to merge 2 commits into
Open
Conversation
Five iOS-lockscreen-style bars under the poster that move on whatever the app actually emits: the radio stream, the loading tone or the error tone. - The signal is tapped via captureStream() + AnalyserNode: unlike the reverted createMediaElementSource approach (69a58f2), playback is NOT rerouted through the AudioContext, so the iOS media session and background playback stay untouched. - All three <audio> elements feed one analyser; per-band peak normalization (AGC) keeps loudness-compressed radio moving on the beat. - The state machine stays the source of truth: applyFx drives data-viz through the new setVisualizer dep (vizModeFor classifier). - Declarative CSS fallback animation when no signal is readable: Safari/iOS + Firefox (no captureStream), data-no-cors stations, AudioContext not yet unlocked, reduced motion. - Streams now load with crossorigin=anonymous (all stations send CORS, verified) except National FM, marked data-no-cors — it plays opaque. - e2e: stream mocks now send CORS headers; user-level visualizer tests (bars still in silence, moving whenever something is audible). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
More frequency resolution so the motion visibly tracks the music: one log-spaced band per bar (computed, at least one bin each), bars generated by visualizer.ts instead of hand-written spans. The strip now spans the full main card width between the logo and the poster; the CSS fallback rhythm patterns repeat across the row via :nth-child(5n+k). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
CI Summary
|
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.
No description provided.