Giter Club home page Giter Club logo

Comments (4)

Polochon-street avatar Polochon-street commented on June 18, 2024

Hi!

First, thanks very much for bliss' integration in MPD, I use MPD too and will test it ASAP! For leleleplayer, I store every song's coordinates in an xml db, and then, when playing in lelelerandom mode, in order to choose a song to play after the previous, I do something like:
do {
song = get_random_song();
} while(bl_distance(song.force_vector, previous_force_vector) > treshold_distance || bl_cosine_similarity(song.force_vector, previous_force_vecotr) < treshold_similarity)

And then chose the remaining song. It sure doesn't find the best song, but that works. I usually use treshold_distance = 4.0 and treshold_similarity = 0.95, and increase them from 0.001 in the loop. That way, if your library is composed of like, two songs very different from each other, it will still continue to play.

This solution is indeed not optimal, so if you have any suggestion, don't hesitate :) (and if it's not clear, tell me!)

The musicbrainz ID thing is indeed a good idea, but I really don't know how does that work. I'll look into it!

from bliss.

Phyks avatar Phyks commented on June 18, 2024

Ok, so I am basically doing the same for my integration with MPD (I am storing all the coordinates in a sqlite db, storing the pairwise distances in another table, and taking the song which is closest.

I will take a look at your approach, as computing all the distances between songs might be really long.

Concerning the idea of an online database, the idea is that if your songs are correctly tagged, we could match them against an online database and get the coordinates directly, rather than recomputing them everytime a user needs it. Musicbrainz provides such universal IDs for songs.

An idea to improve leleleplayer btw is to put the distances in cache as well. I will try to do something like this in my client and will let you know.

from bliss.

Polochon-street avatar Polochon-street commented on June 18, 2024

The only problem I see in the online db idea is that the analysis process will probably change in some further update (regarding the tempo & attack analysis), meaning different values for same songs, making the distance computation irrelevant.

So, I'll wait until bliss is really stable before doing that.
(and, well, thanks for the ideas!)

from bliss.

Phyks avatar Phyks commented on June 18, 2024

Ok for this, better to wait for a stable API :)

from bliss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.