Sarath18/guitar-tabs-to-MIDI

Bug,

SpiderPL opened this issue · 0 comments

Hi, it doesn't work for me when I load a gp3 file as well as a gp5 file.

UnicodeDecodeError Traceback (most recent call last)
Cell In [1], line 18
15 tempo = 100
17 t = Tabs(fname)
---> 18 t.preprocess()
19 t.displayTabs()
20 t.convertNotes()

File ~/project/read_tabs.py:14, in Tabs.preprocess(self)
12 def preprocess(self):
13 with open(self.fname) as f:
---> 14 content = f.readlines()
16 content = [x.strip() for x in content]
18 for symbol in self.symbols:

File /usr/lib/python3.10/codecs.py:322, in BufferedIncrementalDecoder.decode(self, input, final)
319 def decode(self, input, final=False):
320 # decode input (taking the buffer into account)
321 data = self.buffer + input
--> 322 (result, consumed) = self._buffer_decode(data, self.errors, final)
323 # keep undecoded input until the next call
324 self.buffer = data[consumed:]

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 28: invalid start byte