Giter VIP home page Giter VIP logo

qdft's People

Contributors

jurihock avatar stellarpower avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

qdft's Issues

Variable-Q transform and arbitrary frequency scale

Variable-Q transform is very similar to constant-Q transform except the Q value is lower as the frequency decreases, which is useful if you want to have better time resolution on lower frequencies at the expense of frequency resolution at bass frequencies (like a logarithmic-frequency spectrogram with ERB frequency resolution).

Arbitrary frequency scale for bin spacing also enables variable-Q transform and with that, it can directly calculate Mel spectrogram using VQT with Mel-frequency bin spacing and resolution.

IIR windowing

It is worth noting that asymmetric window functions are impossible to implement, not even the window skew parameter outlined in my collection of audio analysis functions on a sliding DFT, but what you can do is make the sDFT an IIR filter bank (which is a damped sine wave). which uses less RAM (since it doesn't need ring buffers) and it can be cascaded (just like biquad filters) to achieve a steeper rolloff at the cost of greater delay (thus, bad time resolution) on long window sizes

Optimize circular buffer shift in the C++ implementation

As mentioned in my comment, the std::rotate is most likely a major performance issue.

Actually there is no measurable difference between the following variations:

  • std::rotate(inputs.begin(), inputs.begin() + 1, inputs.end());
  • std::copy(inputs.begin() + 1, inputs.end(), inputs.begin());
  • std::shift_left(inputs.begin(), inputs.end(), 1);

But instead of std::vector use std::deque to shift the buffered values like so:

  • inputs.pop_front();
  • inputs.push_back(sample);

The complexity of the linear/random element access as well as insertion or removal of elements at both ends of the std::deque should be still O(1).

Improvements

  • Basic usage as a standalone example
  • Additional getters
  • C++ namespace qdft
  • Rework convolution loop
  • Try to build all C++ examples as possible, regardless of the Python availability
  • Bin latency values in seconds

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.