{"id":13861896,"url":"https://github.com/dodiku/MixingBear","last_synced_at":"2025-07-14T09:34:15.412Z","repository":{"id":57442043,"uuid":"130938867","full_name":"dodiku/MixingBear","owner":"dodiku","description":"Package for automatic beat-mixing of music files in Python 🐻🎚","archived":false,"fork":false,"pushed_at":"2018-04-26T17:37:10.000Z","size":32,"stargazers_count":110,"open_issues_count":4,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-06T21:19:12.354Z","etag":null,"topics":["algorithm-library","analysis","audio","audio-analysis","audio-features","audio-processing","audioowl","beat-detection","beats","dj","feature-extraction","mir","mixing","ml","music","music-information-retrieval","pip","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/dodiku.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}},"created_at":"2018-04-25T02:21:49.000Z","updated_at":"2024-09-04T11:46:00.000Z","dependencies_parsed_at":"2022-09-26T17:21:04.864Z","dependency_job_id":null,"html_url":"https://github.com/dodiku/MixingBear","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodiku%2FMixingBear","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodiku%2FMixingBear/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodiku%2FMixingBear/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodiku%2FMixingBear/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dodiku","download_url":"https://codeload.github.com/dodiku/MixingBear/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225968893,"owners_count":17553157,"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":["algorithm-library","analysis","audio","audio-analysis","audio-features","audio-processing","audioowl","beat-detection","beats","dj","feature-extraction","mir","mixing","ml","music","music-information-retrieval","pip","python"],"created_at":"2024-08-05T06:01:32.412Z","updated_at":"2024-11-22T21:31:19.828Z","avatar_url":"https://github.com/dodiku.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\n[![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/Naereen/StrapDown.js/blob/master/LICENSE)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\n# MixingBear\nAutomatic beat-mixing of music files in Python, using [AudioOwl](https://github.com/dodiku/AudioOwl) 🎚\n\n**Jump to:**\n- [Quickstart](https://github.com/dodiku/MixingBear#quickstart)\n- [Installation](https://github.com/dodiku/MixingBear#installation)\n- [Usage](https://github.com/dodiku/MixingBear#usage)\n\n\n![MixingBear](https://raw.githubusercontent.com/dodiku/MixingBear/master/Images/MixingBear.png)\n\n# Quickstart\nMix two WAV files -\n```python\nimport mixingbear\nmixingbear.mix('track01.wav', 'track02.wav', 'output.wav')\n```\n# Installation\n\u003e Tested on Python 3.6 or later\n\n\n\u003e ⚠️ AudioOwl needs **ffmpeg** to be installed on your machine.\n\u003e The easiest way to install ffmpeg (at least on a Mac) is using homebrew. [See instructions here](https://gist.github.com/clayton/6196167).\n\n\nThe latest stable release is available on PyPI.  \nInstall it using the following command -\n\n```bash\n$ pip install mixingbear\n```\n\n# Usage\n\n## ``mixingbear.mix()``\nSaves a mixed WAV file locally to ``output_file_path``\n\nSupported keyword arguments for ``audioowl.get_waveform()``:\n- ``top_file`` - Path to a WAV file you want to mix onto ``bottom_file``. e.g. ``top_file=wav_file.wav``\n- ``bottom_file`` - Path to a WAV file you want to mix ``top_file`` onto. e.g. ``bottom_file=wav_file.wav``\n- ``output_file_path`` - Path for the mixed output WAV file you want to mix ``output_file_path`` onto. e.g. ``bottom_file=output.wav``\n- ``mix_mode`` *[optional, default == 'random']* - String:\n  - ``random`` - MixingBear will find the best mixing points, and will mix the tracks starting on a random one out of them.\n  - ``first`` - MixingBear will find the best mixing points, and will mix the tracks on the **first** one.\n- ``sr`` *[optional, default == 22050]* - Integer. Sample rate.\n- ``offset`` *[optional, default == 880, equal to ~20 milliseconds on a track with 44100 sample rate]* - Integer. Number of samples to use as padding on beats, to choose sync points. e.g. With offset=880, beats will be considered as 'matching' is they are positioned away from each other in 880 samples or less.\n- ``trim_silence`` *[optional, default == False]* - Boolean. If True, MixingBear will trim leading silence on ``top_file``.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodiku%2FMixingBear","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdodiku%2FMixingBear","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodiku%2FMixingBear/lists"}