Phyks (Lucas Verney)
Also bump Bliss version
|3 years ago|
|bliss @ 3b27601584||3 years ago|
|include||4 years ago|
|mpd||3 years ago|
|scripts||4 years ago|
|src||3 years ago|
|.gitignore||4 years ago|
|.gitmodules||4 years ago|
|CMakeLists.txt||4 years ago|
|LICENSE||4 years ago|
|README.md||4 years ago|
Blissify is a wrapper around Bliss to compute and store values in an SQLite database.
It is done in an attempt to bind Bliss to MPD to be able to play smooth mixes with MPD, à la Grooveshark radio.
To build it you will need
sqlite3, plus the required
git clone --recursive https://github.com/phyks/blissify cd blissify; mkdir build; cd build cmake .. make
This will build a
This repo contains several codes and scripts.
blissify executable can be used to compute the values necessary to
use Bliss for various song files and store them in a SQLite database.
This executable takes a first argument being the basepath and a list of
filenames relative to this basepath as argument. It will compute values using
Bliss and store them in a SQLite database located in
$XDG_DATA_HOME/blissify/db.sqlite3 (defaults to
You can do whatever you want with this db afterwards.
mpd/ folder of this repo, you will find a
server.py script. This is
a simple Python script to easily build the database from your MPD music
library. It calls
blissify under the hood, so note that the
executable SHOULD be in your
It takes a
mpd_root argument to set the top path of your MPD music library.
You can use either
--full-rescanto purge the db and perform a full scan of your MPD music library.
--rescan-erroredto scan failed files stored in database (from a previous run). This option is usable even if you do not use MPD.
--updateto perform an update based on new additions to the library.
--listento listen to MPD IDLE signals on database update and update the database accordingly in realtime.
Connection to your MPD server is handled by
6600), as described in
mpc man page.
Note: This step can be quite long. It took me around 50 hours to build the database for a library with 50k songs.
Once you have built the database, you may want to play a continuous mix with
MPD. This is the purpose of the
client.py script in
This script also uses the same environment variables as
mpc does to connect to your MPD server.
Note: This script needs to have access to the database you built previously.
Then, you should either copy the database on the client (in the same
$XDG_DATA_HOME/blissify folder) or run it on the server.
It takes a single (optional) argument which is the number of songs to add to the playlist. Default is 20.
It builds a continuous mix starting from the latest song in your playlist. If your playlist is empty, it will start from a random song.
Note: If random mode is enabled in MPD, the script will warn you about it. Indeed, in this case, the mix is no longer continuous.
scripts folder, you will find a Python script
build the distances cache.
Whenever you want to create a continuous mix, the client script will iterate through your music library, compute pairwise distances and take a close enough song. These computed distances are stored in the database as a cache, to generate a playlist faster the next time.
build_cache.py script can be used to precompute the pairwise distances
and build the cache, if you are willing to make some extra computation to
generate mixes faster.
This code is distributed under an MIT license.
Feel free to contribute and reuse. For more details, see