Code Monkey home page Code Monkey logo

audio-to-midi's People

Contributors

bill317996 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

audio-to-midi's Issues

hello can you help me

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

Python Error

While exceuting, i get following error:
`Audio to midi : Update in 20190503

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

Songname: train01
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, Hop=512, StartFreq=32.7, StopFreq=2093.0, NumPerOct=48)
File "/mnt/f/Users/JonasR/Downloads/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, StartFreq, 1/StopFreq, g, NumPerOct)
File "/mnt/f/Users/JonasR/Downloads/Audio-to-midi-master/cfp.py", line 141, in CFP_filterbank
[tfr, f, t, N] = STFT(x, fr, fs, Hop, h)
File "/mnt/f/Users/JonasR/Downloads/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 "/usr/local/lib/python3.8/dist-packages/numpy/core/function_base.py", line 113, in linspace
num = operator.index(num)
TypeError: 'numpy.float64' object cannot be interpreted as an integer`

Incorrect name for model_vocal

Code needs to call model_vocal not model_Vocal

Traceback (most recent call last):
  File "audio2midi.py", line 305, in <module>
    main(fp, mp, op)
  File "audio2midi.py", line 243, in main
    Net.load_state_dict(torch.load(model_path, map_location=lambda storage, loc: storage))
  File "/home/trigdev/anaconda3/lib/python3.7/site-packages/torch/serialization.py", line 584, in load
    with _open_file_like(f, 'rb') as opened_file:
  File "/home/trigdev/anaconda3/lib/python3.7/site-packages/torch/serialization.py", line 234, in _open_file_like
    return _open_file(name_or_buffer, mode)
  File "/home/trigdev/anaconda3/lib/python3.7/site-packages/torch/serialization.py", line 215, in __init__
    super(_open_file, self).__init__(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: './model/model_Vocal'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.