Last active
December 14, 2016 01:25
-
-
Save uwekamper/a1708827dac2a4bcad4d6404cd9e4d33 to your computer and use it in GitHub Desktop.
Loop mit Beat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydub import AudioSegment | |
sound1 = AudioSegment.from_file("loop.wav") | |
kick = AudioSegment.from_file("kick.wav") | |
snare = AudioSegment.from_file("snare.wav") | |
ms = len(sound1)//4 | |
beat = AudioSegment.silent(duration=ms).overlay(kick).overlay(snare, position=ms//2) * 4 | |
combined = (sound1.overlay(beat) * 4).fade_in(1000).fade_out(1000) | |
combined.export("combined.mp3", format='mp3') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mono und mit mieser Bitrate: