Author Topic: How to get Similar Artist list?  (Read 4618 times)

AvikB

  • Sr. Member
  • ****
  • Posts: 945
I am trying to get the similar artist list shown in the Music Explorer. Right now i am using the following function:
Code
public delegate string Library_QuerySimilarArtistsDelegate(string artistName, double minimumArtistSimilarityRating);

I am providing artist name and setting the minimumArtistSimilarityRating to 0. I am getting different results.
It does not match up with the result i get in the Music Explorer.



Also it seems to add u0000 in front of the name. Is it intentional? Most of the artist name is not even from my library.
Is there anyway to get that same result?

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34362
for minimumArtistSimilarityRating = 0, MB uses the value set in the auto-dj panel. The music explorer uses a formula that depends on the library size to get a similarity factor. If you use 0.2 then that should give you a reasonably close approximation.
The null character is a separator ie. you recieve a single string and split using the null character to get the array of artists.
However you would need to filter it for artists in the library if you want the same as the music explorer
Last Edit: February 17, 2018, 05:51:08 PM by Steven

AvikB

  • Sr. Member
  • ****
  • Posts: 945
Will it be possible to expose some Music Explorer methods? Such as


Code
//For getting all the tracks from certain artist
GetTrackListByArtist(string artistName);

//Gets similar artist from local music collection
GetSimilarArtistsFromLibrary(string artistName);


Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34362
sure. I will try and do this in the next week or so

AvikB

  • Sr. Member
  • ****
  • Posts: 945