Code off Github not running

77 views
Skip to first unread message

Benjamin

unread,
Jun 17, 2010, 6:49:43 PM6/17/10
to makerbotmusic
Hi, I'm getting some errors when running mid2cnc.py in the terminal.
I've supplied the correct links to the midi and gcode output, as well
as ppi.
Here's what I see:

Traceback (most recent call last):
File "<directory>/mid2cnc.py", line 219, in <module>
main(sys.argv)
File "<directory>/mid2cnc.py", line 63, in main
midi = midiparser.File(midifile)
File "<directory>/midiparser.py", line 134, in __init__
self.read(str)
File "<directory>/midiparser.py", line 150, in read
str = track.read(str)
File "<directory>/midiparser.py", line 169, in read
track_str = event.read(prev_absolute, prev_status, track_str)
File "<directory>/midiparser.py", line 211, in read
self.detail.velocity = ord(str[1])
IndexError: string index out of range

Is this a dumb user error? (It's gotta be, if others have it working)

Benjamin

unread,
Jun 17, 2010, 6:53:28 PM6/17/10
to makerbotmusic
Nevermind me, the issue is only happening with one midi file.
I'll go fix that file instead...

Henning

unread,
Jun 25, 2010, 6:13:19 PM6/25/10
to makerbotmusic
you can fix this by re-saving the midi file with a midi composer of
your choice. eg. tuxguitar.
Reply all
Reply to author
Forward
0 new messages