{"id":27020880,"url":"https://github.com/Polochon-street/bliss","last_synced_at":"2025-04-04T19:02:24.201Z","repository":{"id":51220854,"uuid":"46511408","full_name":"Polochon-street/bliss","owner":"Polochon-street","description":"Bliss music library that can compute distance between songs","archived":false,"fork":false,"pushed_at":"2023-03-23T17:13:20.000Z","size":27896,"stargazers_count":82,"open_issues_count":4,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-04T08:22:51.178Z","etag":null,"topics":["audio","audio-analysis","audio-analyzer","audio-applications","distance","songs"],"latest_commit_sha":null,"homepage":"https://lelele.io/bliss_old.html","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Polochon-street.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-19T18:18:39.000Z","updated_at":"2025-03-17T09:51:02.000Z","dependencies_parsed_at":"2024-10-28T13:41:38.586Z","dependency_job_id":"d8236b01-578a-4c98-b21d-bbc14ca7c913","html_url":"https://github.com/Polochon-street/bliss","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polochon-street%2Fbliss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polochon-street%2Fbliss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polochon-street%2Fbliss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polochon-street%2Fbliss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Polochon-street","download_url":"https://codeload.github.com/Polochon-street/bliss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234920,"owners_count":20905854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","audio-analysis","audio-analyzer","audio-applications","distance","songs"],"created_at":"2025-04-04T19:01:41.470Z","updated_at":"2025-04-04T19:02:24.183Z","avatar_url":"https://github.com/Polochon-street.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"![build](https://github.com/Polochon-street/bliss/workflows/C/badge.svg)\n\n# Note: this is now in support-mode only.\n# For new features, see [bliss-rs](https://github.com/Polochon-street/bliss-rs).\n\n# Bliss music analyzer v1.2.0\nBliss music library is a multithreaded C library used to compute distance between songs. It is especially usable through MPD with [Blissify](https://github.com/Phyks/Blissify).\nIt is can be useful for creating « intelligent » playlists and/or continuous play, à la Spotify/Grooveshark Radio. \u003cbr /\u003e\nBliss is really useful when used as a plug-in for audio players, so feel free to use the python bindings to develop one for your favorite player! \u003cbr /\u003e\nSee ANALYSIS.md for a technical description of the project.\n\nNOTE: Currently rewriting and enhancing it in Rust, after prototyping something better than the current Bliss for my Msc thesis. Stay tuned!\u003cbr /\u003e\nSee ROADMAP.md for a (very incomplete) list of what's to come.\n\n## Current projects using Bliss \n* MPD thanks to [Blissify](https://github.com/Phyks/Blissify)\n* [leleleplayer](https://github.com/Polochon-street/leleleplayer)\n\n## Usage\n* The main purpose of the library is to extract features from songs in the form of coordinates (tempo, amplitude, frequency, attack).\n* Use `bl_analyze()` to compute these coordinates for a given song.\n* Use `bl_distance_file()` to compute the euclidian distance between two songs. The closer the songs are, the more similar they are. Two same songs have a distance that tends towards 0. (This function is merely a wrapper for calling `bl_analyze()` for each song and computing their euclidian distance)\n* Python bindings are also available for these functions. See [the wiki](https://github.com/Polochon-street/bliss/wiki/Python-Bindings) to learn how to use them. \u003cbr /\u003e \u003cbr /\u003e\nThese two functions are just examples of what can be done with coordinates in an euclidian space; machine-learning/big data algorithms could also be used to make cool things, such as clustering. See this [article](https://linuxfr.org/news/sortie-de-la-bibliotheque-d-analyse-musicale-bliss-1-0#performances) (in French)\u003cbr /\u003e\u003cbr /\u003e\nThe most immediate thing one that can be done to test this library could be to install it and then run python/examples/make\\_m3u\\_playlist.py on a folder with random songs in it: it will try to build the best playlist out of the files in the directory.\n## Dependencies\n\n* libavformat\n* libavutil\n* libavcodec\n* libswresample (or libavresample, if libswresample isn't present)\n* libfftw3\n\nIf you are running Ubuntu (e.g. 14.04), you should `apt-get install libavutil-dev libavformat-dev libavcodec-dev libavresample-dev libfftw3-dev`.\n\nIf you are running Arch Linux, `pacman -S ffmpeg` should be enough.\n\nFor the Python bindings\n\n* python-cffi\n* python-setuptools\n\n## Installation\n\n### Linux users\n\n* clone repository on github\n```bash\n$ git clone https://github.com/Polochon-street/bliss.git\n```\n* go to bliss root directory\n```bash\n$ cd bliss\n```\n* Create and enter the build directory\n```bash\n$ mkdir build \u0026\u0026 cd build\n```\n* Generate the Makefile\n```bash\n$ cmake .. -DCMAKE_BUILD_TYPE=Release\n```\n* Compile the library\n```bash\n$ make\n```\n* Install the library\n```bash\n(root) make install\n```\n* (optional) Install the python bindings\n```bash\n(root) cd python \u0026\u0026 python setup.py install\n```\n\n## Usage examples\n* See examples/analyze.c and examples/distance.c\n* Compile any project using bliss with\n```bash\n$ gcc -o example example.c -lbliss $(pkg-config --cflags libavutil libavformat libavcodec)\n```\n* Examples for python bindings are in python/examples\n\n## Unittests\nThis library comes with some unittests. To build them, just run\n```\n$ make test\n```\nin the `build/` folder. Unittests source files can be found in the `tests/` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPolochon-street%2Fbliss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPolochon-street%2Fbliss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPolochon-street%2Fbliss/lists"}