1. compilation
A music similarity library, returning a weighted combination of several API and tool results.
compilation
Package: compilation
Created by: gwicke
Last modified: Mon, 13 Jun 2022 19:45:44 GMT
Version: 0.1.5
License: Apache-2.0
Downloads: 24
Repository: https://github.com/gwicke/similar-music

Install

npm install compilation
yarn add compilation

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: 0.5204596666666667,
    href: 'https://api.spotify.com/v1/artists/5wTAi7QkpP6kp8a54lmTOq' },
  { name: 'Carl Maria von Weber',
    similarity: 0.49999999999999983,
    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: 0.3333333333333333,
    href: 'http://www.last.fm/music/Bonobo/_/The+Plug',
    artist: 
     { name: 'Bonobo',
       href: 'http://www.last.fm/music/Bonobo' } },
  ...
]

Backends:

  • Last.fm

See also

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code