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

hello can you help me #4

Open
menglangnumber9 opened this issue Jan 28, 2023 · 0 comments
Open

hello can you help me #4

menglangnumber9 opened this issue Jan 28, 2023 · 0 comments

Comments

@menglangnumber9
Copy link

D:\0__A\Audio-to-midi-master>python audio2midi.py
Audio to midi : Update in 20190503

input_folder: ./input/
output_folder: ./output/
melody_type: Vocal

Songname: vocals
Traceback (most recent call last):
File "audio2midi.py", line 305, in
main(fp, mp, op)
File "audio2midi.py", line 249, in main
W, Time_arr, Freq_arr = feature_ext(file_path)
File "audio2midi.py", line 182, in feature_ext
Z, Time_arr, Freq_arr, tfrL0, tfrLF, tfrLQ = cfp.feature_extraction(y, sr,
op=512, StartFreq=32.7, StopFreq=2093.0, NumPerOct=48)
File "D:\0__A\Audio-to-midi-master\cfp.py", line 208, in feature_extraction
tfrL0, tfrLF, tfrLQ, f, q, t, CenFreq = CFP_filterbank(x, fr, fs, Hop, h, S
artFreq, 1/StopFreq, g, NumPerOct)
File "D:\0__A\Audio-to-midi-master\cfp.py", line 141, in CFP_filterbank
[tfr, f, t, N] = STFT(x, fr, fs, Hop, h)
File "D:\0__A\Audio-to-midi-master\cfp.py", line 55, in STFT
f = fs*np.linspace(0, 0.5, np.round(N/2), endpoint=True)
File "<array_function internals>", line 5, in linspace
File "D:\ProgramData\Anaconda3\lib\site-packages\numpy\core\function_base.py"
line 113, in linspace
num = operator.index(num)
TypeError: 'numpy.float64' object cannot be interpreted as an integer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant