Skip navigation

Open source: Chordino

License: GNU GPL version 2 or later

The Find chords from a song feature uses Chordino, open-source software. On this page you can download the source code and find out how to rebuild the version running on your device.

1. What Chordino is

Chordino (NNLS-Chroma) is software that recognizes chords from audio, from Queen Mary University of London (QMUL); the main author is Matthias Mauch. License: GNU General Public License (GPL) version 2 or later.

Citation: M. Mauch and S. Dixon, ISMIR 2010.

2. How we use it

The Find chords from a song feature uses Chordino in two ways. For a music file you choose, we compile Chordino to WebAssembly and run it right in your browser, so the file is analyzed on your device and is not sent anywhere.

For a YouTube link, our server downloads the audio and analyzes it with the same software, then deletes the audio right away.

We do not modify Chordino's code. What we add is the glue layer between Chordino and the browser; this layer is also released under the GPL, in the same source package below.

3. Download the source code

The source package contains Chordino (the exact version in use), the Vamp plugin SDK, our glue layer and the build scripts, enough to rebuild the WebAssembly build that is running. Boost and the Emscripten compiler are not in the package: the README lists their versions and hashes.

Chordino version (nnls-chroma commit)
4c5f214a75cb354f8d8c933e161377c5b4d83713
sha256 of the .wasm file being served
28d6dc4cdd86c6775a1abfd86f9994fc57c3bf88d22830883b1c22121504eb9d

4. Rebuild it yourself

1. Download the package and unzip it.

2. Follow the README file in the package: it has a script to fetch the source code, a build script using Emscripten (version pinned in the package) and a quick test. You need Docker and a network connection, because the compiler downloads Boost.

3. Compare the sha256 of the .wasm file you built with the sha256 in section 3.

When we build twice from the same source, we get the same sha256. If yours differs, please let us know.

5. License and copyright notices

Chordino and the WebAssembly build are under the GNU GPL version 2 or, at your option, any later version. The original copyright notices are kept intact in the source package.

The package also uses the Vamp plugin SDK (MIT-style license, included in the package), Boost (Boost Software License 1.0) and the Emscripten runtime (MIT). Per-component copyright notices are in the package's NOTICE.txt file.

The NNLS algorithm part of Chordino was ported from the Lawson and Hanson implementation on Netlib; we have not checked the license of that source. See the notice in the NOTICE.txt file.

6. No warranty

Under the GPL, Chordino and our build are provided without any warranty, to the extent permitted by law. The English text of the GPL is the authoritative version; this paragraph is only a summary. Chords are guessed by the tool and may be wrong.

7. Contact

Questions about the source code or license? Contact [email protected].

Open source: Chordino