Giter Site home page Giter Site logo

hendriks73 / jipes Goto Github PK

View Code? Open in Web Editor NEW
32.0 5.0 9.0 7.11 MB

Open source library that allows you to efficiently compute audio features.

License: GNU Lesser General Public License v2.1

Java 99.96% CSS 0.04%
java dsp mir music-information-retrieval music-library digital-signal-processing

jipes's Introduction

Jipes

Maven Central Build Status Coverage Status

Jipes is a Java open source library that allows you to efficiently compute audio features. Possible uses for these features are general music information retrieval (MIR) applications or more specifically personal music software like beaTunes.

To use Jipes in your Maven project, use the following dependency:

<dependency>
    <groupId>com.tagtraum</groupId>
    <artifactId>jipes</artifactId>
    <version>X.Y.Z</version>
</dependency>

Replace X.Y.Z with the release version number from Maven Central.

For more details, please visit the Jipes website.

jipes's People

Contributors

hendriks73 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  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jipes's Issues

ConstantQ

I am having some issues with the ConstantQ Transform.
By analyzing the same file with the same chain, but with different min and max frequencies I am getting results that don't seem to be consistent.

This is a minimal example:
SignalSource source = new AudioSignalSource(new File("test.wav"));

    int windowLength = 2048;
    WindowFunction windowFunction = new WindowFunction.Hamming(windowLength);

    int hopSize = 1024;
    float minFrequency = 8.1757f;
    float maxFrequency = 12543.853f;
    int binsPerSemitone = 1;

    SignalPump<AudioBuffer> pump = new SignalPump<>(source);
    SignalPipeline<AudioBuffer, LogFrequencySpectrum> cqtPipeline = new SignalPipeline<>(
            new Mono(),                                             // if there are more than one channel, reduce them to mono
            new SlidingWindow(windowFunction.getLength(), hopSize),
            new Mapping<>(AudioBufferFunctions.createMapFunction(windowFunction)),
            new ConstantQTransform(minFrequency, maxFrequency, 12 * binsPerSemitone),
            new AbstractSignalProcessor<LogFrequencySpectrum, ArrayList<LogFrequencySpectrum>>("specID") {  // aggregate the CQTs to a spectrum with id "specID" (needed to access it in the results)
                private final ArrayList<LogFrequencySpectrum> spectrogram = new ArrayList<>();

                @Override
                protected ArrayList<LogFrequencySpectrum> processNext(LogFrequencySpectrum input) throws IOException {
                    this.spectrogram.add(input);
                    return this.spectrogram;
                }
            }
    );
    pump.add(cqtPipeline);
    Map<Object, Object> results = pump.pump();
    ArrayList<LogFrequencySpectrum> result = (ArrayList<LogFrequencySpectrum>) results.get("specID");

Thanks for helping.

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.