Git Product home page Git Product logo

Comments (4)

hughrawlinson avatar hughrawlinson commented on September 22, 2024

I think this would be a good addition. I'm not sure how best to go about it. I'm not worried about a breaking change, as we're working on a new interface anyway in #931 and we can just include it as part of that. But, that's a big chunk of work and I wouldn't want to block this on that. What are your thoughts on how you would expect this functionality to be surfaced to you as a user?

from meyda.

jamesb93 avatar jamesb93 commented on September 22, 2024

In another lifetime I might imagine an interface whereby you supply the ampSectrum or powerSpectrum as inputs but I think it would make more sense to pass a Map() of parameters:

const params = new Map(
    ['power' : true]
)

or something comparabale like a straight up JSON object. I've actually been using entirely the OOTB defaults for all Meyda stuff, apart from wiggling the buffer size to get lower minimum frequencies and such, so I'm not too versed in how you actually pass parameters as it stands now.

from meyda.

hughrawlinson avatar hughrawlinson commented on September 22, 2024

Cool. I'll consider that for the new interface. If you would like to use these soon (I think that interface won't be ready for at least a few months), one thing you could do is to open a PR duplicating the existing feature extractors, naming them with a powerSpectrum prefix, like powerSpectrumCentroid, and have them use the power spectrum rather than the amplitude spectrum. I could release that as a minor version increment, and you'd be able to use it. How would you feel about doing a PR for something like that?

from meyda.

jamesb93 avatar jamesb93 commented on September 22, 2024

I personally need the PR so I'd be happy to supply it! Give me this week.

from meyda.

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.