Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traceback ZeroDivisionError #13

Open
FigFrog opened this issue Mar 31, 2021 · 0 comments
Open

Traceback ZeroDivisionError #13

FigFrog opened this issue Mar 31, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@FigFrog
Copy link

FigFrog commented Mar 31, 2021

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

@3096 3096 added the bug Something isn't working label Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants