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

IndexError: list index out of range #6

Closed
LastMonopoly opened this issue Dec 7, 2022 · 1 comment
Closed

IndexError: list index out of range #6

LastMonopoly opened this issue Dec 7, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@LastMonopoly
Copy link

LastMonopoly commented Dec 7, 2022

Describe the bug
Not working when my music is 10 seconds long

Debugging Information
/usr/local/lib/python3.9/site-packages/librosa/util/decorators.py:88: UserWarning: PySoundFile failed. Trying audioread instead.
return f(*args, **kwargs)
INFO: Loaded '常青_7142339610037717768.mp3'. Analyzing...
/usr/local/lib/python3.9/site-packages/librosa/core/convert.py:1332: RuntimeWarning: divide by zero encountered in log10

  • 2 * np.log10(f_sq)
    INFO: Detected 61 beats at 123 bpm
    INFO: Finished initial audio processing in 0.267s
    INFO: Found 0 possible loop points
    Traceback (most recent call last):
    File "/usr/local/bin/pymusiclooper", line 8, in
    sys.exit(cli_main())
    File "/usr/local/lib/python3.9/site-packages/pymusiclooper/main.py", line 243, in cli_main
    loop_start, loop_end, score = choose_loop_pair(loop_pair_list, args.path)
    File "/usr/local/lib/python3.9/site-packages/pymusiclooper/main.py", line 111, in choose_loop_pair
    loop_start = loop_pair_list[index]["loop_start"]
    IndexError: list index out of range

Desktop (please complete the following information):

  • OS: iMac macOS Ventura
  • Is FFmpeg installed and working? (execute ffmpeg --version in the terminal if unsure): ffmpeg version 5.1. YES

Additional context
Here is the music
常青_7142339610037717768.mp3.zip

@LastMonopoly LastMonopoly added the bug Something isn't working label Dec 7, 2022
@arkrow
Copy link
Owner

arkrow commented Jan 20, 2023

Fixed in v2.5.3. However, no loop points were detected with the current algorithm for your provided sample. I'll consider adding a fallback for tracks with less distinct "beats" / loop points with the next major version release.

@arkrow arkrow closed this as completed Jan 20, 2023
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