Skip to content

How does one use this library in the browser? #2

@anoadragon453

Description

@anoadragon453

Hello there, and thanks for your great implementation! I'm having a little trouble in getting started with it though.

I've included the package via npm, and end up with the following hierarchy of files:

chromaprint.js/
├── bin
│   └── fpcalc
├── lib
│   ├── algorithms.coffee
│   ├── calculator.coffee
│   ├── chroma.coffee
│   ├── fpcalc.coffee
│   ├── README.md
│   └── silenceRemover.coffee
├── LICENSE
├── package.json
└── README.md

My question is how exactly does one go about using this in the context of a browser?

The README has the following:

    <!-- attaches a chromaprint object to window -->
    <script src="path/to/chromaprint.js"><script>
    <script>
        // Assuming loadAudio gets a decoded audio stream.
        loadAudio(url, function(stream) {
            chromaprint.calculateFingerprint(stream, console.log);
        });
    </script>

But where exactly is this chromaprint.js file? Should it be generated from the .coffee files somewhere?

Hoping to clear up just a little confusion. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions