Coder Social home page Coder Social logo

questions about the output about cava HOT 3 CLOSED

karlstav avatar karlstav commented on May 10, 2024
questions about the output

from cava.

Comments (3)

karlstav avatar karlstav commented on May 10, 2024

@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.

livibetter avatar livibetter commented on May 10, 2024

@karlstav Thanks for explanations. I hope you can locate and eliminate those three pesky peaks soon.

from cava.

karlstav avatar karlstav commented on May 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.