Api endpoint for mood and genre

I just found a mood and genre playlist generator at AcousticBrainz Moods. But its broken :s I was wondering how they’ve done it. In the doc, acousticbrainz do not provide api endpoints to find songs by genre or mood given a tolerence. Is there some endpoint not documented ? Or they used a dump of the db ?

Thx ! :slight_smile:

3 Likes

Hi,
great to hear that you found this application! In addition to my work on AcousticBrainz I also work at the Music Technology Group and was involved in this project.
We downloaded items from AcousticBrainz and made our own search database in order to be able to search by genre or mood. The source code for the application isn’t open yet, but I’ve just spoken to my colleagues and we will open it up soon.

What bugs do you see in the application? We will try and fix them.

We have future plans to offer search like this in the main AcousticBrainz API for the entire catalogue, but this is a new development project which we don’t have a lot of time for at the moment. We still have a number of other features that we want to finish first. Are you are developer? We’d love to have help on the project!

5 Likes

@alastairp It doesn’t generate any playlists :smiley: Gets an internal server error on querying the endpoint, e.g. http://mtg.upf.edu/demos/acousticbrainz/moods/playlist?genre=death+metal&size=15&tolerance=0.05&mood_relaxed=0.5

2 Likes

that sure is a bug. I recall a coworker indicating that he had some problems with this, I’ll see if we can take a look at it next week.

3 Likes

Would be amazing to see the code and use it for funkwhale playlist generation :slight_smile:

I’m a self-learned python nerd, I don’t know if I know enough to help but I’m very interested in music recommendation systems. If you have some dev work to do you can ping me :slight_smile:

3 Likes

So I supposed this is dead now, but do you know if there is a similar project using listening data and genre/tag classifications ?

You mean beside musicbrainz tags?

yep. If I remember well there was some concatenation done to create categories like Energetic mood or things like that. Or maybe I wall only using acousticbrainz mood classification idk

Sorry about this! It’s not dead, just under development…
(with my hat on as a developer at MTG):
We wanted to open up the code/data behind it, but as this was done as a project for another organisation we had to redo some of the code, then we ran into a problem with deploying it online. Most of the issues have been cleaned up now and so I hope that in the next week or so we’ll get this live again.

2 Likes