{"id":13396950,"url":"https://github.com/sergree/matchering","last_synced_at":"2025-05-13T21:04:35.392Z","repository":{"id":37949735,"uuid":"150785299","full_name":"sergree/matchering","owner":"sergree","description":"🎚️ Open Source Audio Matching and Mastering","archived":false,"fork":false,"pushed_at":"2025-05-10T13:44:50.000Z","size":6350,"stargazers_count":2036,"open_issues_count":31,"forks_count":204,"subscribers_count":44,"default_branch":"master","last_synced_at":"2025-05-10T14:39:04.285Z","etag":null,"topics":["audio","docker-image","dsp","equalizer","filter","limiter","mastering","matchering","matching","music","numpy","python","python-library","python3","scipy","sound","spectrum","vst"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/matchering/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sergree.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"SUPPORTERS.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":"https://t.me/tribute/app?startapp=de85"}},"created_at":"2018-09-28T19:21:01.000Z","updated_at":"2025-05-10T13:44:53.000Z","dependencies_parsed_at":"2023-02-08T09:17:09.260Z","dependency_job_id":"70450d81-91bd-437a-9694-2d5b90e6e861","html_url":"https://github.com/sergree/matchering","commit_stats":{"total_commits":359,"total_committers":7,"mean_commits":"51.285714285714285","dds":0.3231197771587744,"last_synced_commit":"817d041ee245e4087d24b80d865558ae858d016b"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergree%2Fmatchering","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergree%2Fmatchering/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergree%2Fmatchering/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergree%2Fmatchering/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergree","download_url":"https://codeload.github.com/sergree/matchering/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254028420,"owners_count":22002250,"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","docker-image","dsp","equalizer","filter","limiter","mastering","matchering","matching","music","numpy","python","python-library","python3","scipy","sound","spectrum","vst"],"created_at":"2024-07-30T18:01:08.306Z","updated_at":"2025-05-13T21:04:30.383Z","avatar_url":"https://github.com/sergree.png","language":"Python","funding_links":["https://t.me/tribute/app?startapp=de85"],"categories":["Audio","资源列表","Tools for Self-Hosting","Python","音频","Audio Related Packages","Software","HarmonyOS","Multimedia","Audio Tools","Audio [🔝](#readme)","DSP, Transforms \u0026 Spectral Analysis","Audio Processing \u0026 I/O"],"sub_categories":["音频","Automation","Windows Manager","Media Servers","Drone Frames","IO router / deconstructed loops anchor"],"readme":"[![Buy Me A Coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://t.me/tribute/app?startapp=de85)\n\n![Matchering 2.0](https://raw.githubusercontent.com/sergree/matchering/master/images/logo.png)\n\n[![License](https://img.shields.io/pypi/l/matchering.svg)](https://pypi.python.org/pypi/matchering/)\n[![PyPI Version](https://badge.fury.io/py/matchering.svg)](https://badge.fury.io/py/matchering)\n[![PyPI Python Versions](https://img.shields.io/pypi/pyversions/matchering.svg)](https://pypi.python.org/pypi/matchering/)\n[![Mentioned in Awesome Python](https://awesome.re/mentioned-badge.svg)](https://github.com/vinta/awesome-python)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n## Matching + Mastering = ❤️\n\n\u003e ### *Loved Matchering?*\n\u003e \n\u003e *Check out [**.masterknecht** - free WebAssembly reference mastering tool](https://masterknecht.klangknecht.com/) by [Benjamin Rosseaux](https://www.rosseaux.net/)!*\n\u003e \n\u003e *Massive props! 🚀*\n\u003e\n\u003e *Note: [**.masterknecht**](https://masterknecht.klangknecht.com/) is not related to Matchering's source code at all. It's a completely separate tool written in C and compiled to WebAssembly, which processes all audio locally in your browser without the need for any servers!*\n\u003e \n\u003e *— Sergree*\n\n**[Matchering 2.0]** is a novel **[Containerized Web Application](#docker-image)**, **[Python Library][PyPI]**, and **[ComfyUI Node](#comfyui-node)** for audio matching and [mastering].\n\n🔥 Also integrated in the **[UVR5 Desktop App](https://ultimatevocalremover.com/)**!\n\nIt follows a *simple idea* - you take TWO audio files and feed them into **Matchering**: \n- **TARGET** (the track you want to master, you want it to sound like the reference)\n- **REFERENCE** (another track, like some kind of \"wet\" popular song, you want your target to sound like it)\n\nOur algorithm matches both of these tracks and provides you the mastered **TARGET** track with the same [RMS], [FR], [peak amplitude] and [stereo width] as the **REFERENCE** track has.\n\n🔥 **[Benn Jordan Matchering review][BennVideo]**:\n\u003e - ***Matchering 2.0 beating all other AI's**! (note: by carefully selecting a proper song as reference)*\n\u003e - *Ranking it no.3 (out of 12) right behind 2 professional master engineers*\n\u003e - *Seems a rock-solid study with 472 judged entries*\n\u003e \n\u003e *(Thanks to [@bascurtiz](https://github.com/bascurtiz) for [the find](https://github.com/sergree/matchering/issues/59))*\n\n[![Benn Jordan Review Video](http://i3.ytimg.com/vi/wZRV2H4PK0Q/hqdefault.jpg)][BennVideo]\n\nYou can try out **Matchering** yourself without having to install it, thanks to the hosting provided by **[Songmastr](https://www.songmastr.com/)** and **[Moises](https://moises.ai/)**.\n\nWatch **[the video][Video]**:\n\n[![Matchering 2.0 Promo Video](http://img.youtube.com/vi/8Su5STDYfcA/0.jpg)][Video]\n\nSo **Matchering 2.0** will make your song sound the way you want! It opens up a wide range of opportunities:\n- You can make your music instantly sound like your favorite artist's music\n- You can make all the tracks on your new album sound the same very quickly\n- You can find new aspects of your sound in experiments\n- You can do everything as you want! Because of **[Your References, Your Rules.™](https://macprovideo.com/article/audio-software/sound-tools-instant-online-mastering-with-reference-matching-now-in-open-beta)** *(just a little nostalgic note)* 🤭\n\n![Matchering WEB GIF Animation](https://raw.githubusercontent.com/sergree/matchering/master/images/animation.gif \"Matchering WEB\")\n\n\u003e Differences from the previous major version:\n\u003e - Completely rewritten in [Python 3], based on open source tech stack (no more [MATLAB])\n\u003e - Our own open source [Hyrax] [brickwall limiter] was implemented for it\n\u003e - Processing speed and accuracy have been increased\n\u003e - Now it is [the library][PyPI] that can be connected to **everything** in **the Python world**\n\nIf you are looking for a **Matchering paper**, you can read **[this Habr article](https://habr.com/ru/post/709120/)**.\n\n# Installation and Usage\n\nIf you are a music producer or an audio engineer, choose the **[Desktop App](#desktop-app---the-easiest-way)** or **[ComfyUI Node](#comfyui-node)**. \n\nIf you are an AI mastering startup, choose the **[Docker Image](#docker-image)**. \n\nIf you are a developer, choose the **[Python Library](#python-library---for-developers)**.\n\n# Desktop App - The Easiest Way\n\n### [NEW! Matchering @ UVR5 Desktop App](https://ultimatevocalremover.com/)\nYou can find Matchering under `Choose Process Method \u003e Audio Tools \u0026 Choose Audio Tool \u003e Matchering`.\n\n### [Or try WITHOUT Installation](https://www.youtube.com/watch?v=Aw0nH6QqAck)\n\n# ComfyUI Node\n\n### [ComfyUI-Matchering](https://github.com/MuziekMagie/ComfyUI-Matchering)\n\n# Docker Image\n\n### [Windows](https://github.com/sergree/matchering/blob/master/DOCKER_WINDOWS.md)\n### [macOS](https://github.com/sergree/matchering/blob/master/DOCKER_MACOS.md)\n### [Linux](https://github.com/sergree/matchering/blob/master/DOCKER_LINUX.md)\n\n## Updating\n\nIf you need to update the version of the installed **Docker Image**, follow **[these instructions](https://github.com/sergree/matchering/blob/master/DOCKER_UPDATING.md)**.\n\n# Python Library - For Developers\n\n## Installation\n\n**4 GB RAM machine with [Python 3.8.0 or higher][Python 3] is required**\n\n### libsndfile\n\n**Matchering 2.0** depends on the **[SoundFile]** library, which depends on the system library **[libsndfile]**. On Windows and macOS, it installs automatically. On Linux, you need to install **[libsndfile]** using your distribution's package manager, for example:\n\n```sudo apt update \u0026\u0026 sudo apt -y install libsndfile1```\n\n### python3-pip\n\nOn some Linux distributions, **python3-pip** is not installed by default. For example use this command on Ubuntu Linux to fix this:\n\n```sudo apt -y install python3-pip```\n\n### Matchering Python Package\n\nFinally, install our `matchering` package:\n\n```\n# Linux / macOS\npython3 -m pip install -U matchering\n\n# Windows\npython -m pip install -U matchering\n```\n\n### *(Optional) FFmpeg*\n\nIf you would like to enable *MP3 loading support*, you need to install the **[FFmpeg][FFmpeg]** library. For example use this command on Ubuntu Linux:\n\n```sudo apt -y install ffmpeg```\n\nOr follow these instructions: [Windows][FFmpeg-win], [macOS][FFmpeg-mac].\n\n## Quick Example\n\n```python\nimport matchering as mg\n\n# Sending all log messages to the default print function\n# Just delete the following line to work silently\nmg.log(print)\n\nmg.process(\n    # The track you want to master\n    target=\"my_song.wav\",\n    # Some \"wet\" reference track\n    reference=\"some_popular_song.wav\",\n    # Where and how to save your results\n    results=[\n        mg.pcm16(\"my_song_master_16bit.wav\"),\n        mg.pcm24(\"my_song_master_24bit.wav\"),\n    ],\n)\n\n```\n\nYou can find more examples in the **[examples directory]**.\n\n### Or you can use premade **Matchering 2.0 Command Line Application**: **[matchering-cli]**.\n### Or its enhanced fork: **[kubinka0505/matchering-cli]**.\n\n## 💓 WhatBPM\n\nLooking for the perfect BPM or key for a new EDM track?\n\n**[Check out WhatBPM!](https://sergree.github.io/whatbpm)**\n\nA completely free open-source web service from the author of Matchering.\n\n## A Coffee\n\nIf our package saved your time or money, you may:\n\n[![Buy Me A Coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://t.me/tribute/app?startapp=de85)\n\n**Thank you!**\n\n## Links\n\n- [Press About Us](https://github.com/sergree/matchering/blob/master/PRESS.md)\n- [Supporters](https://github.com/sergree/matchering/blob/master/SUPPORTERS.md)\n- [Our Limiter Quality Test](https://github.com/sergree/matchering/blob/master/LIMITER_TEST.md)\n- [Matchering Hyrax Limiter JSFX clone by Tokyo Dawn Labs](https://github.com/JClones/JSFXClones/blob/master/JClones_Hyrax.md)\n- [Log Codes Overview](https://github.com/sergree/matchering/blob/master/LOG_CODES.md)\n- [Our Thoughts](https://github.com/sergree/matchering/blob/master/THOUGHTS.md)\n\n[Matchering]: https://github.com/sergree/matchering\n[Matchering 2.0]: https://github.com/sergree/matchering\n[Hyrax]: https://github.com/sergree/matchering/tree/master/matchering/limiter\n[mastering]: https://en.wikipedia.org/wiki/Audio_mastering\n[RMS]: https://en.wikipedia.org/wiki/Root_mean_square\n[FR]: https://en.wikipedia.org/wiki/Frequency_response\n[peak amplitude]: https://en.wikipedia.org/wiki/Amplitude\n[stereo width]: https://en.wikipedia.org/wiki/Stereo_imaging\n[MATLAB]: https://www.mathworks.com/products/matlab.html\n[Python 3]: https://www.python.org/\n[brickwall limiter]: https://en.wikipedia.org/wiki/Dynamic_range_compression#Limiting\n[PyPI]: https://pypi.org/project/matchering\n[SoundFile]: https://github.com/bastibe/SoundFile#installation\n[libsndfile]: http://www.mega-nerd.com/libsndfile/\n[FFmpeg]: https://www.ffmpeg.org/download.html\n[FFmpeg-win]: https://video.stackexchange.com/questions/20495/how-do-i-set-up-and-use-ffmpeg-in-windows\n[FFmpeg-mac]: https://superuser.com/questions/624561/install-ffmpeg-on-os-x\n[matchering-cli]: https://github.com/sergree/matchering-cli\n[kubinka0505/matchering-cli]: https://github.com/kubinka0505/matchering-cli\n[examples directory]: https://github.com/sergree/matchering/tree/master/examples\n[Video]: http://www.youtube.com/watch?v=8Su5STDYfcA \"Matchering 2.0 - Open Source Audio Matching and Mastering\"\n[BennVideo]: https://www.youtube.com/watch?v=wZRV2H4PK0Q \"Benn Jordan Matchering 2.0 Review\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergree%2Fmatchering","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergree%2Fmatchering","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergree%2Fmatchering/lists"}