lasconic shape notes plugin crashes MuseScore
I am having trouble setting up the lasconic shape notes plugin (https://musescore.org/project/shapenotes) on MuseScore 2.0.0 or greater. MuseScore crashes whenever I try to run the plugin. I do have it working on one computer, Windows 7 Pro 64-bit SP1 with MuseScore 2.0.0 Revision 6e47f74 and shape_notes plugin version 1.0, but it's been so long since I set that one up I don't remember how I did it.
On 2 different computers (also Windows 7) I did a clean install of MuseScore 2.0.2, downloaded the zip file with the shape notes plugin, and created a folder C:\Program Files (x86)\MuseScore 2\plugins\shape_notes\ containing the files README, shape_notes.js, shape_notes.qml, and shape_notes.ui. Then I started MuseScore, clicked Plugins -> Plugin Manager, checked the box for shape_notes, and clicked OK. I restarted MuseScore, entered a few notes on a new score, and then clicked Plugins -> Notes -> Shapes Notes. The outline of the Shapes Notes window appeared, MuseScore stopped responding for several seconds, and then Windows 7 put up the "MuseScore has stopped working" notice. MuseScore goes away after that, and says "the last session closed unexpectedly" when starting the next time. That crash happens every single time I try to open the Shapes Notes plugin.
I've tried removing version 2.0.2 and installing 2.0.0 instead, but that hasn't made a difference. I tried copying the shape_notes plugin directory from my one computer that does have it working, but it still crashes on the other computers.
Any advice on how to fix this issue? It works on one computer, so I know it's possible to have the shape notes plugin on version 2.0.0 without crashing MuseScore.
Comments
According what I've read in the forum, old plug-ins (before 2.0.0) don't work with the 2.0.0 and 2.0.1 versions.
In reply to According what I've read in by jotape1960
True, but this plugin has been ported and should work
I did some experiments, and apparently the problem I'm having here is related to plugins that create controls (buttons, checkboxes, etc.) Plugins without controls, like colornotes and notenames which use only menu items to run their code, work with no problems. Plugins with controls, like abc_import, crash MuseScore just like shape_notes does. Maybe I have a problem with Qt libraries?
Anyway, I figured out how to edit the QML code files for plugins. I made a copy of the shape_notes.qml file and commented out nearly everything. It was able to display a blank dialog box without crashing MuseScore. As soon as I un-commented any of the code for controls, it went back to crashing.
After that, I re-wrote the plugin to function like the colornotes and notenames ones: it's just a menu item, with no dialog. It converts to Aiken 7-shapes, but has code that can be uncommented to do Sacred Harp / fasola 4-shapes or revert to unshaped notes.
The edited plugin is in the attached QML file.
Another oddity: After I deleted all the original shape_notes files, the plugin still appears in MuseScore's Plugin Manager, with a path of C:\Program Files (x86)\MuseScore 2\plugins. No shape_notes files there anymore, but it's not forgetting it.
In reply to I did some experiments, and by karlinhigh
For future reference, here are the installation instructions I have worked out for the plugin.
Copy the noteshaper.qml file into the My Documents\MuseScore2\plugins folder. (Thanks to Jojo-Schmitz for correction in reply below; original said use folder in Program Files.)
Start MuseScore.
Click the menu Plugins -> Plugin Manager. The Plugin Manager window appears, with a list of plugin programs and checkboxes to activate or de-activate them.
Check the box that says noteshaper
OPTIONAL: Click the Define Shortcut button. This can assign a keyboard combination to run the plugin, instead of clicking menus to do that. The Ctrl+Alt+S combination seems to work well, but you can use anything that's not already being used elsewhere. I pressed Ctrl+Alt+S, then clicked Add.
Click OK.
There should now be a menu item for shaped notes, under Plugins.
If you click that menu item, or press its assigned keyboard shortcut, all notes get changed to shapes. The shapes don't change if a note is moved to a lower or higher pitch; the plugin must be run again to change the note to the correct shape.
In reply to For future reference, here… by karlinhigh
> Copy the noteshaper.qml file into the C:\Program Files\MuseScore 2\plugins folder. (Or maybe it's \Program Files (x86)\ instead of \Program Files.)
Don't to that, See https://musescore.org/en/handbook/plugins#windows and copy it into My Documents/MuseSore2/Plugins resp. %HOMEPATH%\Documents\MuseScore2\Plugins instead.
I, in turn, have slightly modified that plugin by turning it into two separate plugins -- one of which does 7-shapes, the other of which does 4-shapes. (We're talking here about 5-character edits!). I also made them each print out their separate functions by saying "Hello 4-shapenotes" or "Hello 7-shapenotes." I hope this small contribution is of use to someone.
In reply to I, in turn, have slightly by spike7638
I didn't try the 4-note version because I don't need it, but the 7-note version works! Thank you very much!
Could anyone maybe make a tutorial on how to fix the plugin shape notes (7shapes) in musescore?
I just downloaded the program, and it works fine, except for this plugin that I need.
It crashes. I read the forums, the manuals, the tips over here......
I seem to do something wrong in the downloading , unzipping, and copiying over to the C-file on my PC
In reply to Could anyone maybe make a by marielle1
Hi Ms. Nutella ;-)
As I can't see your screen, I might be asking some seemingly stupid questions, but they will help in getting the full picture.
1.) Which file did you download. Please post the link you've used to download the file here
2.) As you've unzipped it; where did the resulting file(s) end up? C:\… ?
3.) "It crashes". What is "it"? The plugin or MuseScore?
4.) What is your MuseScore version (under Help → About…)
bonus question: Have you ever used another plugin? If so, which one and did that work?
In reply to Hi Ms. Nutella ;-)… by jeetee
Hi again jeetee, and thank you!
1) I downloaded the file from this page https://musescore.org/en/project/shapenotes
2) They stayed in the download-folder. But I tried to move them into C, Musescore , plugins after reading this thread,
3) Musescore tells me something unlawful happened and it will have to shut down (that is: Musescore shuts down).
4) 2.1.0
Bonus; yes I believe I have, mostly in regard to streaming TV. Then I just download something and it fixes itself.
In reply to Hi again jeetee, and thank… by marielle1
Copy the plugin to the locations mentioned in https://musescore.org/en/handbook/plugins#windows, namely %HOMEPATH%\Documents\MuseScore2\Plugins
In reply to Copy the plugin to the… by Jojo-Schmitz
Thank you both very much, I didn't realize I had the program also in Documents. I have it now installed, looks like it, and I checked the box for shape notes in plugin manager.
Now - how does it apply automaticly? I shouldnt have to inform the program for every note in the right wing menu? That seems like a lot of work
In reply to Thank you both very much, I… by marielle1
On the main MuseScore window, look in the Plugins menu for something about shaped notes. Clicking on that option should give a way to change all the notes at once.
In reply to Thank you both very much, I… by marielle1
First enter all your notes in 'normal' mode. Then select all (Ctrl-A) and operate the plugin.
Thank you both!
Yes, that sounds very reasonable. Although I have shape notes with a checked box in the plugin manager, it is NOT included in the choices list below (that starts with ABC, notes, etc. I suppose it should be an under choice together with "color notes" and "note names", possibly. )
Is this because I should do something with the plugin editor as well?
You should be able to find it as Plugins → Notes → Shapes Notes
Yes, that is what I am thinking too. But is is not.
You could try adding a shortcut to call the plugin. Open up the plugin manager, highlight the shape_notes line in the list on the left.
Then on the right side, click the 'Define Shortcut' button and enter a new shortcut combination by pressing those keys (Ctrl+Alt+K is still available by default).
OK out of those dialog windows.
Now select a measure and press Ctrl+Alt+K (or whatever you set as the shortcut for the plugin) and the dialog window should open.
Yes, I actually tried that , but I tried it again with new short cut, with your example. Doesn't show.
I think I give up for now. Maybe I will delete the program and do everything again. Erase all downloads. I may have done something to corrupt something.
Thank you guys! Great effort to try and help me! Much appreciated
In reply to Yes, I actually tried that ,… by marielle1
You could try running it from the plugin editor, then you may see why it does not load or run.
paste in all 4 files in the editor? open it from documents?
In reply to paste in all 4 files in the… by marielle1
Just open the qml file in the plugin editor
Hey! I used your code , pasted in the plugin editor, and I managed to change the normal notes in to 7-shapes. But it worked only once, and the next time the musescore shut down.
Am I onto something now? ( I cant seem to manage to install the plugin the normal way.
PS that would be to SPIKE7638
and to Karlinhigh: I used your code also, it worked.
I can now solve this by just paste inn this code in the editor every time I wish to see the shapes. A little more work then clicking in the menu, but still solvable! I will just have your code ready for hand to paste.
THANK YOU
In reply to and to Karlinhigh: I used… by marielle1
You're welcome. And further thanks to Nicolas Froment, the plugin's original author.
I have installation instructions for the plugin as a reply to an earlier message.