Giter Site home page Giter Site logo

Comments (5)

Ghadjeres avatar Ghadjeres commented on August 29, 2024 1

Ok, finally I rewrote the musescore_flask_plugin.
Unfortunately, some things have changed since the latest version.

Now, I cannot retrieve in python the score displayed in MuseScore. So what I did is to keep a local copy of the generated scores in the flask server. However, if you do so, you are not able to change some parts of the score by hand and to regenerate the other parts with DeepBach.

So far, you just have to start the Flask server, then start the MuseScore plugin and click on compose.
The first time you click on compose, a totally new score is generated. Then you can select any region and click on compose.

It works fine in this setting, but:

  • you cannot change the metadata (keys, fermata, ...)
  • it does not take into account the displayed score in MuseScore, so it is fixed length (fixed when you start the Flask server).
  • musescore opens a new file when you have a new generated chorale and always asks you if you want to save or not.

Also, I just saw today that MuseScore 3 existed. But this plugin, in its current state, is incompatible with it. So for the moment it's only MuseScore 2.

Check musescore_flask_server.py --help if you want to generate

I really hope you will use that!

from deepbach.

Ghadjeres avatar Ghadjeres commented on August 29, 2024

Hi!
Yes, indeed, I did not include the flask_server for musescore in the pytorch version; and I don't plan to do so.
The reason is that we developed a new interface in order to replace musescore, which allows for more intuitive and responsive controls as can be seen here:
https://twitter.com/gaetan_hadjeres/status/1086175891896569857
(The MuseScore interface is indeed a bit restrictive).
I'm trying to release this interface as soon as possible.

In the meantime, if you really want to use DeepBach with Musescore, I just pushed the Flask server I use with the new interface (flask_server.py). With this file, it should be easy to adapt the old plugin_flask_server.py to use the new implementation. Sorry for that.

from deepbach.

Nico-Adamo avatar Nico-Adamo commented on August 29, 2024

Thank you so much! I'm looking forward to the new interface.
However, I haven't really worked with flask, and I'm having some trouble. The new flask_server seems to make no reference whatsoever to models, which the musescore plugin depends heavily on. Furthermore, load_models no longer exists. Where, then, should I route a GET for models? Or will I have to re-write the musescore plugin too?

In any case, it isn't a big deal - I'll just look for that interface! Hoping it's going to be open source, or at least free?

from deepbach.

antoniodimartino avatar antoniodimartino commented on August 29, 2024

Hi, Ghadjeres,
I'm trying to install on musescore 2, win10. When I run "python musescore_flask_server.py" the system answers:
C:\Program Files\MuseScore 2\plugins\DeepBach-master>python musescore_flask_server.py
Traceback (most recent call last):
File "musescore_flask_server.py", line 4, in
import click
ModuleNotFoundError: No module named 'click'

can you help me?
thanks

from deepbach.

antoniodimartino avatar antoniodimartino commented on August 29, 2024

Maybe for me It would be helpful reading a step-to-step guide....

from deepbach.

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.