Comments (5)
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().
from libxtract.
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.
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.
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.
from libxtract.
Thanks to both for helping me understand, cheers!
from libxtract.
Related Issues (20)
- failing mingw64 compilation HOT 6
- no more pd externals? HOT 2
- Python bindings in 2019 HOT 2
- Failing to build HOT 5
- Wrong Spectrum Computation HOT 1
- Mel spectrograms
- Build error on Windows
- Remove printf logging
- xtract_loudness() sometimes gives too-high values
- Building Pure Data external HOT 1
- Python bindings not installed with build HOT 4
- issue of building python bindings HOT 2
- round-off errors in generating spectra and other parameters HOT 5
- fabs warnings HOT 1
- Reinstate Pd external using flext
- LibXtract integrated in Ios application:
- python bindings HOT 1
- pip or conda package for python
- error in wavefile.cpp cannot install
- No downloads/releases anymore? 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 libxtract.