Comments (3)
@livibetter let me just say that I really appreciate all the feedback. I had also forgot all i learned in signal processing (it was so hard!), but I re learned some of it when working on cava.
You are absolutely right, there seems to be some "noise" in the fifo processing. I will look through the code, it's over a year since I wrote that part so it might take a while.
Now over to the frequency bands. They are distributed in the same scale as with musical notes:
f=440^(n/12)
where n is the number of semitones up or down from a A4.
In cava the cutoff frequencies are calculated by:
fc[n] = 10000 * pow(10, -2.37 + ((((float)n + 1) / ((float)bands + 1)) *
2.37));
So yes, a log scale, per my calculations the middle frequency would be 743Hz. So it looks about right with 1k a bit to the right of the center. I don't remember the details, but as i write in the readme it's supposed to go from 50-12,000Hz
from cava.
@karlstav Thanks for explanations. I hope you can locate and eliminate those three pesky peaks soon.
from cava.
turns out i was putting the samples from the temporary read buffer into the shared buffer the wrong way
While the shared buffer contains 2048 samples the temp buffer contains 128 samples. So each of those 128 samples would be inserted backwards. Should be fixde now.
from cava.
Related Issues (20)
- Failure occurred in build() HOT 1
- Noise reduction setting always set to 0 if uncommented (?) HOT 1
- Cava gradient colors problems unchangable HOT 3
- ln: /usr/local/bin/libtoolize: Permission denied HOT 2
- On PipeWire, getting "snd_aloop" error message unless capture method is explicitely set to pipewire/pulse HOT 5
- Pipewire support fails to crossbuild because of hardcoded include flags HOT 4
- glew.dll not found HOT 2
- cava 9.x does not react with sensitivity = 0 HOT 12
- Better error message HOT 1
- Desktop bottom background Spectrum Analizer HOT 1
- reload cava with a signal or have transparent background HOT 4
- how to use and change shaders ? HOT 1
- Help choosing my sound card HOT 4
- Cava no bars on arch linux HOT 4
- The interface for audio playback is not always recognized HOT 4
- Question regarding right padding HOT 4
- Question about command line HOT 3
- No moving bars for cava with alsa HOT 9
- console blanking behavior after stopping cava HOT 2
- Keyboard commands not working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cava.