Created
April 12, 2018 15:04
-
-
Save jonassvatos/1b73d498a276685c67556017376531d7 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/env python | |
import numpy as np | |
import wavio | |
a = wavio.read('track1.wav') | |
b = wavio.read('track2.wav') | |
c = np.subtract(a.data, b.data) | |
wavio.write('difference.wav', c, 48000, sampwidth=3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment