• Stars
    star
    107
  • Rank 321,729 (Top 7 %)
  • Language
    Python
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Package for automatic beat-mixing of music files in Python ๐Ÿป๐ŸŽš

GitHub license PRs Welcome

MixingBear

Automatic beat-mixing of music files in Python, using AudioOwl ๐ŸŽš

Jump to:

MixingBear

Quickstart

Mix two WAV files -

import mixingbear
mixingbear.mix('track01.wav', 'track02.wav', 'output.wav')

Installation

Tested on Python 3.6 or later

โš ๏ธ AudioOwl needs ffmpeg to be installed on your machine. The easiest way to install ffmpeg (at least on a Mac) is using homebrew. See instructions here.

The latest stable release is available on PyPI.
Install it using the following command -

$ pip install mixingbear

Usage

mixingbear.mix()

Saves a mixed WAV file locally to output_file_path

Supported keyword arguments for audioowl.get_waveform():

  • top_file - Path to a WAV file you want to mix onto bottom_file. e.g. top_file=wav_file.wav
  • bottom_file - Path to a WAV file you want to mix top_file onto. e.g. bottom_file=wav_file.wav
  • output_file_path - Path for the mixed output WAV file you want to mix output_file_path onto. e.g. bottom_file=output.wav
  • mix_mode [optional, default == 'random'] - String:
    • random - MixingBear will find the best mixing points, and will mix the tracks starting on a random one out of them.
    • first - MixingBear will find the best mixing points, and will mix the tracks on the first one.
  • sr [optional, default == 22050] - Integer. Sample rate.
  • 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.
  • trim_silence [optional, default == False] - Boolean. If True, MixingBear will trim leading silence on top_file.

More Repositories

1

AudioOwl

Fast and simple music and audio analysis using RNN in Python ๐Ÿ•ต๏ธโ€โ™€๏ธ ๐Ÿฅ
Python
280
star
2

noise_reduction

Speech noise reduction which was generated using existing post-production techniques implemented in Python
HTML
175
star
3

music-synthesis-with-python

Music Synthesis with Python talk, originally given at PyGotham 2017.
Jupyter Notebook
75
star
4

detune

๐Ÿ‘จโ€๐ŸŽคdetune: A TrueDepth Music Experience for iOS --> ARKit, ARFaceAnchor Boilerplate
Swift
35
star
5

PressKit.js

โœจA JS script that generates a well-designed press kit page ๐Ÿ“ฐfor your creative project โœจ
JavaScript
26
star
6

audio_noise_clustering

https://dodiku.github.io/audio_noise_clustering/results/ ==> An experiment with a variety of clustering (and clustering-like) techniques to reduce noise on an audio speech recording.
Python
25
star
7

Luncz

Luncz allows musicians to record a 10 second snippet of live music played on an acoustic or an amplified instrument, and analyzes the recording to extract the notes, the tempo, and the intensity level of the music. Using this data, Luncz generates new music to accompany the musician.
Jupyter Notebook
20
star
8

music_with_data_workshop

Materials for technical workshop about making music in the browser using data from the Twitter API
JavaScript
17
star
9

NOMNOM-The-Video-Machine-v2.0

๐Ÿ“บA web application that uses an Arduino based controller to play videos from YouTube like music samples ๐ŸŽ› ๐ŸŽง
JavaScript
13
star
10

sound_gestures

A web application that uses mobile devices as musical instrument.
JavaScript
5
star
11

music_with_data_workshop_template

A template code for the Making Music with Online Data Workshop - https://github.com/dodiku/music_with_data_workshop
JavaScript
5
star
12

Csound

My Csound compositions
Jupyter Notebook
4
star
13

nded

JavaScript
2
star
14

RNN-training

1
star
15

news_scraper

A web scraper that gets news articles about a list of companies from a list of websites
Python
1
star
16

NOMNOM-The-Video-Machine-v1.0

A video controller, powered by an Arduino, that controls the playback of videos presented on a web browser.
JavaScript
1
star
17

best_language_web_app

https://bestlanguage.herokuapp.com ==> A NodeJS web application showing which programming language is best one to start learning today. Data is based on GitHub and Stackoverflow APIs.
JavaScript
1
star