Giter Club home page Giter Club logo

Comments (8)

justinsalamon avatar justinsalamon commented on August 15, 2024

For a tutorial on using melodia in python please see: http://www.justinsalamon.com/news/melody-extraction-in-python-with-melodia

Based on the title of this issue I'm guessing you're also getting an error which might have already been addressed in #4, please have a look and see if that resolves your issue. If not please post a full description of your issue including your OS, python environment, the exact code that resulted in the error and the full error message. Thanks!

from audio_to_midi_melodia.

zhaoyuhsin avatar zhaoyuhsin commented on August 15, 2024

For a tutorial on using melodia in python please see: http://www.justinsalamon.com/news/melody-extraction-in-python-with-melodia

Based on the title of this issue I'm guessing you're also getting an error which might have already been addressed in #4, please have a look and see if that resolves your issue. If not please post a full description of your issue including your OS, python environment, the exact code that resulted in the error and the full error message. Thanks!

For a tutorial on using melodia in python please see: http://www.justinsalamon.com/news/melody-extraction-in-python-with-melodia

Based on the title of this issue I'm guessing you're also getting an error which might have already been addressed in #4, please have a look and see if that resolves your issue. If not please post a full description of your issue including your OS, python environment, the exact code that resulted in the error and the full error message. Thanks!

$ python audio_to_midi_melodia.py a.wav b.mid 60 --smooth 0.25 --minduration 0.1 --jams
Loading audio...
Extracting melody f0 with MELODIA...
Vamp::HostExt::PluginLoader: No library found in Vamp path for plugin "mtg-melodia:melodia"
Traceback (most recent call last):
File "audio_to_midi_melodia.py", line 217, in
savejams=args.jams)
File "audio_to_midi_melodia.py", line 166, in audio_to_midi_melodia
parameters={"voicing": 0.2})
File "/usr/local/lib/python2.7/dist-packages/vamp/collect.py", line 166, in collect
plugin, step_size, block_size = vamp.load.load_and_configure(data, sample_rate, plugin_key, parameters, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/vamp/load.py", line 83, in load_and_configure
vampyhost.ADAPT_CHANNEL_COUNT)
TypeError: Failed to load plugin: mtg-melodia:melodia
why this is happening?

from audio_to_midi_melodia.

regisamichiafox avatar regisamichiafox commented on August 15, 2024

hello @justinsalamon I just installed audio to melodia and I am trying to use it on Windows 64 bits with python 3.6 but I have the same problem as @YuHsin1998 . I tried to visualize the mtg-melodia plugin in sonic visualizer and I had no problem. I am running my code in an virtual environment of Anaconda (so I write the following command in Anaconda Prompt: python audio_to_midi_melodia.py a.wav test.mid 60 --smooth 0.25 --minduration 0.1 --jams) I put a copy of the melodia plugin in the 'site-packages of my virtual environment. But I am stuck and I don't have any solution. Thanks a lot in advance for your answer.

from audio_to_midi_melodia.

Kev-Y-Huang avatar Kev-Y-Huang commented on August 15, 2024

I think per the README, the program requires Python 2.7.

from audio_to_midi_melodia.

davidloq avatar davidloq commented on August 15, 2024

hello @justinsalamon I just installed audio to melodia and I am trying to use it on Windows 64 bits with python 3.6 but I have the same problem as @YuHsin1998 . I tried to visualize the mtg-melodia plugin in sonic visualizer and I had no problem. I am running my code in an virtual environment of Anaconda (so I write the following command in Anaconda Prompt: python audio_to_midi_melodia.py a.wav test.mid 60 --smooth 0.25 --minduration 0.1 --jams) I put a copy of the melodia plugin in the 'site-packages of my virtual environment. But I am stuck and I don't have any solution. Thanks a lot in advance for your answer.

So did you find out how to install in your virtual environment? I'am getting the same issue :(

from audio_to_midi_melodia.

justinsalamon avatar justinsalamon commented on August 15, 2024

@YuHsin1998 what environment are you using? This script is only supported for 32-bit python 2.7. Also make sure you've installed the melodia plugin as per the instructions in the README file.

@regisamichiafox see above.

Please let me know if you manage to get it working. If not, please specify exactly how your environment is set up, the command your are trying to run, and paste the complete error message you're getting.

from audio_to_midi_melodia.

YuriyPomaznoy avatar YuriyPomaznoy commented on August 15, 2024

32-bit python 2.7 - the same problem

from audio_to_midi_melodia.

YuriyPomaznoy avatar YuriyPomaznoy commented on August 15, 2024

Sorry, it works. Thanks!

from audio_to_midi_melodia.

Related Issues (20)

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.