[OpenClaw CTO Bot] feat: Add Bass/Mid/Treble audio frequency band variables - #10
Open
TimLiuDream wants to merge 2 commits into
Open
[OpenClaw CTO Bot] feat: Add Bass/Mid/Treble audio frequency band variables#10TimLiuDream wants to merge 2 commits into
TimLiuDream wants to merge 2 commits into
Conversation
…zation Fixes devlup-labs#1 - Added Bar3DVisualization with perspective projection - X-axis: frequencies, Y-axis: amplitudes, Z-axis: time variation - 3D box rendering with 6-face shading (top brighter, bottom darker) - Auto-rotation + interactive mouse drag rotation - Scroll zoom support - History buffer (deque) for time-series FFT data - New vertexShader3D.glsl with mat4 MVP uniform - Added option 5 in main.cpp menu - Depth testing enabled for proper 3D occlusion
…iables Fixes devlup-labs#2 - Added AudioVariables struct with bass, mid, treble + EMA smoothed versions - Added extractBands() method in AudioProcessor - Frequency ranges: Bass 20-250Hz, Mid 250-4kHz, Treble 4k-20kHz - EMA smoothing (decay=0.1) for bassAtt, midAtt, trebleAtt - Added getAudioVariables() getter - getFFTData() now also extracts band variables
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.
Fix for Issue #2
Problem
The audio processing pipeline computes FFT data but does not extract distinct frequency bands (Bass, Mid, Treble) or their attenuated versions using EMA smoothing.
Solution
Added
AudioVariablesstruct andextractBands()method toAudioProcessor:bassAtt,midAtt,trebleAtt) using exponential moving average with decay factor 0.1getFFTData()now also extracts band variables; accessible viagetAudioVariables()Changes
src/Audio.h: AddedAudioVariablesstruct,getAudioVariables()getter,extractBands()method,emaDecaymembersrc/Audio.cpp: ImplementedextractBands()with frequency band separation and EMA smoothing; updatedgetFFTData()to call itVerification
Payment
Wallet:
0x83544d7a7c5dbe4d4ab06346bfae548175c49fb4