Comments
Contributor
CarlosGS commented on May 1, 2017 via email
|
Hi Luis, as far as I can tell it must be a problem with that particular .mid song, it does not have a defined tempo. Maybe you can try with other .mid files?
|
Author
LuisDiazUgena commented on May 1, 2017
|
Hi! It was a problem with Ableton (the program that we were using) With other program there was no problem. |


Hi!
When trying to parse a .mid song (random download) there is a error in the console:
Traceback (most recent call last): File "C:\Users\Ciencia2\Downloads\bCNC-master-20170501T093403Z-001\Utils.py", line 397, in __call__ return self.func(*args) File "C:\Users\Ciencia2\Downloads\bCNC-master-20170501T093403Z-001\ToolsPage.p y", line 1449, in execute self.tools.getActive().execute(self.app) File "C:\Users\Ciencia2\Downloads\bCNC-master-20170501T093403Z-001\plugins\mid i2cnc.py", line 244, in execute duration = ( ( ( note[0] - last_time ) + 0.0 ) / ( midi.division + 0.0 ) * ( tempo / 1000000.0 ) ) UnboundLocalError: local variable 'tempo' referenced before assignmentWhat can I do to fix this? I’ve been looking for a answer online and can find anything on how to fix this.
Thanks