Use of plugins in Ms4 crashes the program
I am trying hard to use MS4.0 but it is getting very upsetting to do so. Now, I've discovered that few plugins for MS4 have been calibrated. I very frequently use the "Comments" plugin in MS3.6 to make notes of what instrument voices I've assigned to each instrument, so I can edit my choices and then go back to a prior voice if I wish. I copied and pasted the plugin into the Plugins folder in MS4, then launched the program and tried to open the plugin. It opened OK, and accepted typing but when I then closed the plugin, the entire program crashed and closed, and remembered nothing of what I added as a comment. In fact, the few plugins that are authorized for MS4 do me no good. Who needs their notes reversed. or additional articulations not already specified?
Please program MS4 to accept the large plugins list already listed for MS3.6. Thanks
Comments
Those crashes are likely caused ba a
Qt.quit()
in those plugins. While that was wrong in 3.x already, there it at least didn't crash, but now it does. Remove it or at least change to justquit()
In reply to Those crashes are likely… by Jojo-Schmitz
JoJo: Thanks. Changing Qt.quit() to just quit() did the trick. The plugin no longer crashes MS4. Yea!
Last inquiry. In MS4, the comments plugin colors the text in the plugin white, on a gray background. A bit hard to see. What line in the file would I change to get black text on a gray background, as in MS3.6?
In reply to Those crashes are likely… by Jojo-Schmitz
In General look at Plugins for 4.x
In reply to Those crashes are likely… by Jojo-Schmitz
where do I find this Qt.quit() ?
In reply to where do I find this Qt.quit… by mezrothman
I'm having a similar problem with the tempo stretch plugin. As I select the plugin, it crashes MS4
In reply to I'm having a similar problem… by mezrothman
Are you sure you downloaded the correct version from https://musescore.org/en/project/tempostretch?
In reply to where do I find this Qt.quit… by mezrothman
In the code of the plugin
In reply to where do I find this Qt.quit… by mezrothman
Each plugin is a text file, so it can be edited. Download the file to your computer, place it in the "Plugins" folder in Ms4, right-click on it and choose "Open With ..." a text editor such as Wordpad or Notepad if using Windows. You will see a line reading "Qt.quit()" somewhere in the text. Note it may be present in more than one place. Delete the "Qt." so the line simply reads "quit()". Save the file and you should be good to go, with no crashes upon closing. Make sure you do not delete any punctuation marks, just the letters Qt.
Also mention with particular plugin you'd need, and we can check whether it can get migrated
In reply to Also mention with particular… by Jojo-Schmitz
After I changed the "comments" plugin as you suggested above, it works fine. If you can import that to MS4, that would be helpful to everyone (musescore_comments_master). I suggest the text color be changed from white on gray background to black on gray background. Much easier to see (see my reply above)
In reply to After I changed the … by fsgregs
You mean https://musescore.org/en/project/add-comments-score ?
If so: that has been ported already (but not on GitHub, as we don't have access to lasconic's repos)
In reply to You mean https://musescore… by Jojo-Schmitz
JoJo:
Thanks. I imported it to MS4 and it works OK, but the text is white on gray. What line in the plugin do I change to display the text as black on gray?
In reply to JoJo: Thanks. I imported it… by fsgregs
There's 2 lines, line 49:
color : "silver"
and line 81:color : "lightgray"
In reply to There's 2 lines, line 49:… by Jojo-Schmitz
Sigh:
I changed the silver to "black" and the "lightgray" to "white". The background changed to white but the text did not change to black. It is now almost invisible. What is the correct word for black text?
In reply to Sigh: I changed the silver… by fsgregs
"black" should be correct. "#000000" too
In reply to "black" should be correct. "… by Jojo-Schmitz
OK, I am attaching the file. I'd be grateful if you just fix it and post it back. Thanks so much. "Black" is not working for me, unless I entered it wrong.
comments_0.qml
In reply to OK, I am attaching the file… by fsgregs
That black is just the dialog frame, that lightgray the inner part, change the latter to black or darkgray
In reply to That plac is just the dialog… by Jojo-Schmitz
OK, I changed the "white frame" to "black". Now I get white text on a black background, which works fine. Thanks.
I am attaching the corrected file here so you or someone else can port it to MS4 to replace the one there.
comments_0.qml
In reply to OK, I changed the "white… by fsgregs
Are you by chance using the dark theme? As this is probably related and your change would braek it for those using the light theme
In reply to Are you by chance using the… by Jojo-Schmitz
Yes, I'm using the dark theme. In fact, I did not know there was a light frame. How do I activate it?
If my change would break the program commands, then please make any change you feel needed to prevent that, and just post the new plugin file. Thanks
In reply to Yes, I'm using the dark… by fsgregs
In Edit > Preferences
In reply to Yes, I'm using the dark… by fsgregs
Changing lightgray to black would probably result in black text on black backgrpund in the light theme. Using darkgrey would probably have a similar issue in the light theme, black on darkgray, as it now has with white on lightgray.
So the plugin would need to decide which to use depending on the theme setting
In reply to Changing lightgray to black… by Jojo-Schmitz
Seem using just "gray" is sort of the middle ground, where both black and white text is readable
In reply to Seem using just "gray" is… by Jojo-Schmitz
Have done that now and updated on the plugin page
In reply to Have done that now and… by Jojo-Schmitz
Jo Jo:
It looks good, works fine. All Ms4 users thank you for the effort.
In reply to Jo Jo: It looks good, works… by fsgregs
Jojo, not Jo Jo 😉