pstiasny/VITABS

Crash

Closed this issue · 2 comments

Hello! Great project ;)
I've just installed it on arch.
:midiouts command shows nothing, so :midiout fails, but when I press 'E', i got this:

$ vitabs
Something terrible happened
Traceback (most recent call last):
File "/usr/bin/vitabs", line 52, in
ed.normal_mode()
File "/usr/lib/python2.7/site-packages/vitabs/editor.py", line 551, in normal_mode
cmd(self, num_arg)
File "/usr/lib/python2.7/site-packages/vitabs/commands.py", line 350, in play_all
ed.play_range((1,1), ed.tab.last_position())
File "/usr/lib/python2.7/site-packages/vitabs/editor.py", line 353, in play_range
p.set_instrument(getattr(self.tab, 'instrument', 24))
File "/usr/lib/python2.7/site-packages/vitabs/player.py", line 87, in set_instrument
self.port.WriteShort(0xC0, num)
AttributeError: Player instance has no attribute 'port'

Thanks ;)
Haven't noticed this as it defaulted to a dummy thru port for me.
Added some testing in 5398758
Please update and confirm if the issue is fixed.

Thanks, this commit has fixed the issue.