Skip to content

feat: add audio frequency band variables - #5

Open
dtopenclaw wants to merge 1 commit into
devlup-labs:mainfrom
dtopenclaw:fix/audio-variables
Open

feat: add audio frequency band variables#5
dtopenclaw wants to merge 1 commit into
devlup-labs:mainfrom
dtopenclaw:fix/audio-variables

Conversation

@dtopenclaw

Copy link
Copy Markdown

Summary

  • add bass/mid/treble band extraction from FFT magnitudes
  • add EMA-smoothed bassAtt/midAtt/trebleAtt values
  • expose the latest frequency-band values through AudioProcessor

Validation

  • g++ -std=c++17 -Wall -I/tmp/mpv-stubs -Isrc -Iaudio -fsyntax-only audio/FFTProcessor.cpp
  • g++ -std=c++17 -Wall -I/tmp/mpv-stubs -Isrc -Iaudio -fsyntax-only src/Audio.cpp

Fixes #2

lannerwsf added a commit to lannerwsf/MPV that referenced this pull request May 20, 2026
…lup-labs#1)

Convert the 2D bar graph into a 3D bar graph visualization with:
- Perspective projection and orbiting camera for depth perception
- X-axis: frequency bands, Y-axis: amplitude, Z-axis: time evolution
- 3D bar boxes (6 faces, 12 triangles per bar) with depth testing
- FFT history buffer stores up to 64 frames along the Z-axis
- Automatic camera orbit for full 3D viewing experience
- Age-based dimming on older bars for depth cue
- New visualization option devlup-labs#5 in main menu
- Dedicated 3D vertex shader with MVP matrix uniforms

Files:
- src/visualizations/BarVisualization3D.h/.cpp
- src/visualizations/vertexShader3D.glsl
- src/main.cpp (added option 5)
- src/Makefile (added new source)
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.

Add Audio Variables

1 participant