Comments (5)
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.
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.
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.
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.
Maybe for me It would be helpful reading a step-to-step guide....
from deepbach.
Related Issues (20)
- follow up on the youtube video last year HOT 7
- 352 MIDI chorales after discarding voice divisions HOT 2
- Datasets in dataset_cache HOT 3
- Training epochs HOT 2
- Fixing soprano part at generation time HOT 2
- ModuleNotFoundError: No module named 'torch' HOT 1
- File is not a valid MusicXML file - DeepBach using MuseScore HOT 1
- Help installing on Musescore2/win10
- Error when running server HOT 1
- TypeError: can only concatenate str (not "Specifier") to str
- The tailor generation is not working HOT 2
- Usage with NONOTO HOT 1
- Error on pieces with length > 32seconds HOT 2
- How to train or test the model with a new dataset HOT 1
- withdraw
- Code not implementing HOT 2
- Installation section deprecated HOT 1
- Issue running musescore_flask_server.py HOT 5
- Can't Install Using the Anaconda Instructions in the README
- Packages (using OSX) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepbach.