lasconic shape notes plugin crashes MuseScore

• Aug 4, 2015 - 15:27

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

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.

Attachment Size
noteshaper.qml 4.57 KB

In reply to 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

pluginmanager.png

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.

menu.png

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.

Attachment Size
menu.png 13.33 KB
pluginmanager.png 20.34 KB

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.

Attachment Size
note4shaper.qml 4.57 KB
note7shaper.qml 4.57 KB

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 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 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 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

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 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

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.

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

Do you still have an unanswered question? Please log in first to post your question.