Giter Site home page Giter Site logo

irregularity confusion about libxtract HOT 5 CLOSED

jamiebullock avatar jamiebullock commented on September 25, 2024
irregularity confusion

from libxtract.

Comments (5)

q-depot avatar q-depot commented on September 25, 2024

I'm using the spectrum for both, below you can find a gist of my implementation(almost all features, some of them don't work), I ended up wrapping each feature into a class, after several refactoring and approaches this is what makes most sense to me.
mData is the input data, mDataN is set in the constructor of each class(not sure about this approach), in this case is the FFT_SIZE.

This is what you can find in the documentation

*data,: a pointer to the first element in an array of doubles representing the magnitude coefficients from the spectrum of an audio vector, (e.g. the first half of the array pointed to by *result from xtract_spectrum().

ciXtractFeature.cpp

from libxtract.

 avatar commented on September 25, 2024

Ah, right, missed that line (was right above the one I quoted :). In that case, FFT_SIZE / 2 (or my blocksize / 2) is correct, no?

from libxtract.

q-depot avatar q-depot commented on September 25, 2024

my FFT_SIZE is equal to BLOCKSIZE / 2, so the spectrum array is initialised with BLOCKSIZE but the bin numbers is FFT_SIZE, the other half of the array contains the bin frequencies.

from libxtract.

jamiebullock avatar jamiebullock commented on September 25, 2024

Yup, both irregularity functions take a block of spectral magnitude coefficients. Below shows a scaled
comparison between Irregularity (Krimphoff), Red, and Irregularity (Jensen), Green, for a linear cross-fade between a 440Hz sine wave and white noise. That is, we expect a noisy spectrum to be highly irregular. Smoothness measures more-or-less the same thing.

irregularity

from libxtract.

 avatar commented on September 25, 2024

Thanks to both for helping me understand, cheers!

from libxtract.

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.