You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File venv/lib/python3.10/site-packages/muspy/outputs/pianoroll.py:57, in to_pypianoroll(music)
55 for tempo in music.tempos:
56 tempo_arr[position : tempo.time] = qpm
---> 57 tempo_arr[tempo.time] = tempo.qpm
58 position = tempo.time + 1
59 qpm = tempo.qpm
IndexError: index 29085 is out of bounds for axis 0 with size 29085
The bug is probably how the music length is calculated.
i.e. music.get_end_time() return the same number as music.tempos[-1].time if the tracks are altered.
I'm not sure if get_end_time() function or the piano roll function should be fixed.
The text was updated successfully, but these errors were encountered:
File "/Users/egehangunduz/Desktop/github/muspy/test.py", line 10, in <module> muspy.show_pianoroll(music, mode="hybrid", preset="frame") File "/Users/egehangunduz/Desktop/github/muspy/muspy/visualization/pianoroll.py", line 12, in show_pianoroll return multitrack.plot(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/egehangunduz/Desktop/github/muspy/env/lib/python3.11/site-packages/pypianoroll/multitrack.py", line 697, in plot return plot_multitrack(self, axs, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/egehangunduz/Desktop/github/muspy/env/lib/python3.11/site-packages/pypianoroll/visualization.py", line 465, in plot_multitrack merged_drums = drums.blend() ^^^^^^^^^^^^^ File "/Users/egehangunduz/Desktop/github/muspy/env/lib/python3.11/site-packages/pypianoroll/multitrack.py", line 431, in blend stacked = self.stack() ^^^^^^^^^^^^ File "/Users/egehangunduz/Desktop/github/muspy/env/lib/python3.11/site-packages/pypianoroll/multitrack.py", line 413, in stack return np.stack(pianorolls) ^^^^^^^^^^^^^^^^^^^^ File "/Users/egehangunduz/Desktop/github/muspy/env/lib/python3.11/site-packages/numpy/core/shape_base.py", line 445, in stack raise ValueError('need at least one array to stack') ValueError: need at least one array to stack
can you please try to reproduce it and let me know so I can assign myself
To reproduce:
The error:
The bug is probably how the music length is calculated.
i.e.
music.get_end_time()
return the same number asmusic.tempos[-1].time
if the tracks are altered.I'm not sure if
get_end_time()
function or the piano roll function should be fixed.The text was updated successfully, but these errors were encountered: