Compilation
A music similarity library, returning a weighted combination of several API and tool results.
Installation
npm install compilation
Usage
For now, see the tests.
Features
similarArtists({ artist: 'Hector Berlioz' })
Returns Promise
resolving to an Array
, ordered by similarity:
name: 'Johannes Brahms' similarity: 05204596666666667 href: 'https://api.spotify.com/v1/artists/5wTAi7QkpP6kp8a54lmTOq' name: 'Carl Maria von Weber' similarity: 049999999999999983 href: 'http://www.last.fm/music/Carl+Maria+von+Weber' ...
Backends:
- Pandora
- Last.fm
- Spotify
similarTracks({ artist: 'Bonobo', track: 'Silver' })
Returns Promise
resolving to an Array
, ordered by similarity:
name: 'The Plug' similarity: 03333333333333333 href: 'http://www.last.fm/music/Bonobo/_/The+Plug' artist: name: 'Bonobo' href: 'http://www.last.fm/music/Bonobo' ...
Backends:
- Last.fm
See also
- metalminer, a similar library without the weighted result merging.
- Spotify API documentation
- Last.fm API documentation
- Groovebasin, a rather nice C++ / nodejs based player with a web frontend. It is lacking support for using similarity in its auto-dj functionality.