GithubHelp home page GithubHelp logo

berteh / bandinmusescore Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 4.0 825 KB

Accompaniment generator for MuseScore, something like Band-In-A-Box, auto-magically powered by MMA Musical Midi Accompaniment.

Home Page: https://berteh.github.io/BandInMuseScore/

License: GNU General Public License v3.0

QML 99.66% Batchfile 0.34%

bandinmusescore's People

Contributors

berteh avatar markvdb 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

Watchers

 avatar  avatar  avatar  avatar

bandinmusescore's Issues

MMA accompaniment not running on musescore

I installed WPython64 and MMA. It doesn´t run. Error message occurs as folls:
MMA accompaniment is ready for you, but we could not generate the MIDI file from it.
Please fix the following error:

C:\Program Files\MuseScore 3\bin>cd C:\WPython64\mma-bin-19.08\

C:\WPython64\mma-bin-19.08>..\python-3.10.3.amd64\python.exe mma.py -f C:/Users/username/AppData/Local/Temp/Unbenannt_MMA.mid C:/Users/username/AppData/Local/Temp/Unbenannt_MMA.mma

The generated MMA file is nevertheless available at "C:/Users/username/AppData/Local/Temp/Unbenannt_MMA.mma"

Set a groove/sequence

Hello, I'm not familier with music. When I write a .mszc, and click the plugin, it shows me: No data created. Did you remember to set a groove/sequence

image
Just Like That
image

idea for integrating accomp in the main melody file

Hi Berteh
as you ask for "find a way to merge lead and accompaniment in a new score.", I ve got a simple idea.
I guess most of users want to add a aband to a single melody in a lead sheet. So most base MSC will carry only 1 instrument.
Maybe it would be easy to do the following (its what I manually do with bandinmusescore)
In the generated MSC, add an empty score on top.
Copy data from the 1st score of the source MSC to this new score.
Save style of the source MSC and restore in the target one.
Hide all scores except the copied instrument.
You get the exact same file as the source with the band playing.

Error

How can I fix this

MMA accompaniment is ready for you, but we could not generate the MIDI file from it.
Please fix the following error:
undefined

The generated MMA file is nevertheless available at "/var/tmp/BandInMuseScore_MMA.mma"

There's no avaible file at that directory

chord roots shift to upper case only

Hi Berteh
It seems that chord roots entered in lower case in MS (though displayed by MS in upper case) are not recognized by MMA
Maybe you could shift to upper the first chord character (always the root) ane the first character after a slash if any
for ex : am7/c#b5 -> Am7/C#b5
Best regards
Dom

Debug for functionality in 2023

Hello,

I stumbled across this plugin recently and was very excited by its potential for use. As a fairly new jazz composer, I use MuseScore to notate lead sheets and big-band charts, which can sound unbelievably flat without constant access to an improvising rhythm section. I imagine that this plugin could help me immensely to make my demos sound more alive!

Although I was able to install mma largely without issue on my Ubuntu work machine, when adding the plugin into Musescore 3.6.2, I've been experiencing the same undefined error as noted in #2. That being said, with some massaging (e.g., rewriting Eb^7 in-plugin to be accepted as a major 7 chord), mma does seem to be able to generate novel midi accompaniment if I save the generated .mma files to a non-/tmp directory and then run it directly through my command line. I've only been aware of this plugin (and mma, for that matter) for about 12 hours as of last writing so I can't account for every feature.

I'm not very familiar with QML, but I am familiar with Javascript syntax, so I've been doing my best to tool around with the code to see if I can't find the source of the issue. I'm intending to fork this repo and see what I can do on my end, but I'd love to get in touch with @berteh -- if you're still interested in maintaining this project -- to see if I can't be of some assistance to get the tool working seamlessly on newer issues of MuseScore 3.

Thanks! Hope to hear from you.

Issue with cmd command and XML files

First Issue: Using mscz files provided in example folder

When I am running the plugin through command prompt, I am using the following:

mma.bat -i BandInMuseScore.mscz

And this is what I am getting.

C:\WPython64\mma-bin-20.12>cd C:\WPython64\mma-bin-20.12\

C:\WPython64\mma-bin-20.12>..\PYTHON1.AMD\python.exe mma.py -i BandInMuseScore.mscz
Traceback (most recent call last):
File "mma.py", line 91, in
import MMA.main
File "C:\WPython64\mma-bin-20.12\MMA\main.py", line 92, in
MMA.paths.readRC()
File "C:\WPython64\mma-bin-20.12\MMA\paths.py", line 155, in readRC
MMA.parse.parseFile(f)
File "C:\WPython64\mma-bin-20.12\MMA\parse.py", line 94, in parseFile
f = MMA.file.ReadFile(n)
File "C:\WPython64\mma-bin-20.12\MMA\file.py", line 144, in init
l = inpath.readline()
File "C:\WPython64\PYTHON
1.AMD\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 117: character maps to

When I use MuseScore software, everything works fine for the mscz files in your example folder.

So my first question would be, how can I use cmd to generate the mma and MIDI files?

Second Issue: Using my files

I downloaded the following file

This is the message I am getting when I am using the plugin from MuseScore software:

_MMA accompaniment is ready for you, but we could not generate the MIDI file from it.
Please fix the following error:

C:\Program Files\MuseScore 3\bin>cd C:\WPython64\mma-bin-19.08\

C:\WPython64\mma-bin-19.08>..\PYTHON~1.AMD\python.exe mma.py -f C:/Users/YAZAN/AppData/Local/Temp/Nocturne_No.1_Op.2_MMA.mid C:/Users/YAZAN/AppData/Local/Temp/Nocturne_No.1_Op.2_MMA.mma
Error: <Line 10>
File:C:/Users/YAZAN/AppData/Local/Temp/Nocturne_No.1_Op.2_MMA.mma
Illegal/Unknown chord name: 'Legato'

The generated MMA file is nevertheless available at "C:/Users/YAZAN/AppData/Local/Temp/Nocturne_No.1_Op.2_MMA.mma"_

And this file , for example, is giving this error:

_MMA accompaniment is ready for you, but we could not generate the MIDI file from it.
Please fix the following error:

C:\Program Files\MuseScore 3\bin>cd C:\WPython64\mma-bin-19.08\

C:\WPython64\mma-bin-19.08>..\PYTHON~1.AMD\python.exe mma.py -f C:/Users/YAZAN/AppData/Local/Temp/Fr_Elise_MMA.mid C:/Users/YAZAN/AppData/Local/Temp/Fr_Elise_MMA.mma
Error: <Line 21> File:C:/Users/YAZAN/AppData/Local/Temp/Fr_Elise_MMA.mma
Repeatend/EndRepeat without Repeat

The generated MMA file is nevertheless available at "C:/Users/YAZAN/AppData/Local/Temp/Fr_Elise_MMA.mma"_

The files I need to work on mainly are musicxml files, and each file gives me a different error when I want to apply the plugin on MuseScore. So I attached two files in a zip file.

musicxml_files.zip

I want to know why can't I use these files.

Documentation out-of-date

The documentation states, "Install MMA MIDI Accompaniment for your OS (it’s Free). ", however the instructions for MacOS are last updated in 2007, and fail on this line.

sudo ln -sf /usr/local/bin/mma /sw/bin/mma

Can your plugin work on MacOS?

temp directory

Hello, please, it is possible to change temp directory. I have problem with my temp directory, it contains odd characters and I would like to change it.

C:/Users/M�cik Putna.LAPTOP-GQCME58D.001/AppData/Local/Temp

Thanks

Error missing mma plugins

I have installed mma via apt-get as recommended but I am getting the following error:

MMA accompaniment is ready for you, but we could not generate the MIDI file from it.
Please fix the following error: 
Warning:   PLUGIN '/usr/share/mma/plugins' does not exist.
Error: <Line 2> <File:/tmp/Desafinado_MMA.mma> Illegal/Unknown chord name:
    'Arr.'


The generated MMA file is nevertheless available at "/tmp/Desafinado_MMA.mma"

indeed no plugin directory exists at /usr/share/mma/

2 bars chords not created in midifile

Hi Berteh
When a chord is the same in several bars, its often not re-typed in the MSC.
The MMA file shows
1 C7
2
3 E7
4
5.....
but the midifile generated will have only 2 bars, it skips the bars with no chord in the MMA file
If its a MMA limitation, you could generate the MMA file adding the previous chord when a bar is empty.
Best regards
Dom

usual chords not recognized

Hi Berteh
first thanks for such a good job.
some very common chords typo in Musescore are not recognized by Bandinmusscore or MMA.
A-7 is often seen for Am7. A° is often seen for Adim
I think it would be a great idea to have a param file for Bandinmusscore with user preferences mapping to MMA recognized chords.

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.