3096 / genshin_scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Traceback ZeroDivisionError

FigFrog opened this issue · comments

commented

Hello, it would be nice if you could help me out, im a total noob when to this things.
I used PowerShell, it all started, but when in game, trying to use Tab 1 gave me that...

PS C:\WINDOWS\system32> cd F:\Programme\lyer_genshin\genshin_scripts-main
PS F:\Programme\lyer_genshin\genshin_scripts-main> python midi.py

Lyre Midi Player
Copyright (C) 2021  3096

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, see <http://www.gnu.org/licenses/>.

1 - test.mid
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
loaded 1 songs from config!
loading test.mid
Task exception was never retrieved
future: <Task finished name='Task-1' coro=<LyrePlayer.play() done, defined at F:\Programme\lyer_genshin\genshin_scripts-main\midi.py:167> exception=ZeroDivisionError('division by zero')>
Traceback (most recent call last):
File "F:\Programme\lyer_genshin\genshin_scripts-main\midi.py", line 174, in play
note_key_map = self.auto_root_key_map(mid, song_config.auto_root_channels, song_config.auto_root_tracks,
File "F:\Programme\lyer_genshin\genshin_scripts-main\midi.py", line 164, in auto_root_key_map
print(f"auto root found root at {best_root} with {best_hits}/{total} ({best_hits / total})")
ZeroDivisionError: division by zero
loading test.mid
Task exception was never retrieved
future: <Task finished name='Task-2' coro=<LyrePlayer.play() done, defined at F:\Programme\lyer_genshin\genshin_scripts-main\midi.py:167> exception=ZeroDivisionError('division by zero')>
Traceback (most recent call last):
File "F:\Programme\lyer_genshin\genshin_scripts-main\midi.py", line 174, in play
note_key_map = self.auto_root_key_map(mid, song_config.auto_root_channels, song_config.auto_root_tracks,
File "F:\Programme\lyer_genshin\genshin_scripts-main\midi.py", line 164, in auto_root_key_map
print(f"auto root found root at {best_root} with {best_hits}/{total} ({best_hits / total})")
ZeroDivisionError: division by zero