Comments (4)
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.
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.
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.
Ok for this, better to wait for a stable API :)
from bliss.
Related Issues (20)
- cosine_similarity producing similar result values? HOT 15
- libswresample dependency only available for very latest distros HOT 9
- trying to decode more than 7 files produces crash of the process HOT 10
- Fails to build with ffmpeg-6.0 HOT 3
- ReplayGain HOT 3
- ffmpeg garbage output HOT 2
- Segfault HOT 3
- Freeing struct upon BL_UNEXPECTED HOT 3
- Wrong usage example HOT 2
- Ranges for each analysis value HOT 4
- Probleme de compilation HOT 11
- use aubio for analysis? HOT 2
- build error with ffmpeg 2.8.8 HOT 2
- Classifying songs HOT 2
- ArchLinux PKGBUILD fix please HOT 1
- Status of this project HOT 2
- Failed test building on Debian/buster HOT 1
- Please tag the repository with a version number HOT 2
- Please drop "/usr/" in installation paths HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bliss.