We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cceaa0 commit 765b315Copy full SHA for 765b315
2 files changed
mingus/extra/fft.py
@@ -129,7 +129,7 @@ def find_notes(freqTable, maxNote=100):
129
def data_from_file(file):
130
"""Return (first channel data, sample frequency, sample width) from a .wav
131
file."""
132
- fp = wave.open(file, "r")
+ fp = wave.open(file, "rb")
133
data = fp.readframes(fp.getnframes())
134
channels = fp.getnchannels()
135
freq = fp.getframerate()
mingus/midi/midi_file_in.py
@@ -372,7 +372,7 @@ def parse_midi_file(self, file):
372
track data and the number of bytes read.
373
"""
374
try:
375
- f = open(file, "r")
+ f = open(file, "rb")
376
except:
377
raise IOError("File not found")
378
self.bytes_read = 0
0 commit comments