"Count note beats" Plugin
MuseScore version: 3.6.2
Platform: Windows.
Hello,
The "Count note beats" plugin doesn't work for me. It does not appear in Plugin Manager.
I was able to load and run other plugins so that doesn't seem to be the problem.
I tried the folder way (/Plugins and /Plugins/Notes); I renamed the qml file to "Count note beats"; and I created a new plugin with the same code inside (just changing the path and name) to prevent possible buffer queue errors.
No way. I don't know if anyone has experienced something similar and it can be solved.
Thanks a lot.
Comments
You mean this one https://musescore.org/en/project/count-notes-beats-each-measure ?
It has an error:
Line 297: Expected token `identifier'
Seems it doesn't like the ... in
function applyToSelectionOrScore(cb, ...args) {
Might be a Qt version thing, not sure
In reply to You mean this one https:/… by Jojo-Schmitz
Sorry, I forgot the link. Yes, that's it.
hmm now i saw it, thanks Jojo!. It looks like incomplete code.
In reply to Sorry, I forgot the link… by korev
Looks like a varadic argument list to me.
@mirabilos is needed here to clarify his intention
In reply to You mean this one https:/… by Jojo-Schmitz
Indeed looks like a Qt version issue, that error doesn't show when building MuseScore with Qt 5.15. (I still don't see that plugin actually doing anything though)
The official releases (Windows, macOS and Linux AppImage) though are done with Qt 5.9.
In reply to Indeed looks like a Qt… by Jojo-Schmitz
Rest Parameters is indeed a rather recent addition to ECMAScript (only since ES6), which explains it not being available in the older Qt JS engine (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Funct…)
In reply to Rest Parameters is indeed a… by jeetee
Which means Qt 5.12 or later is needed for that plugin
In reply to Which means Qt 5.12 ir later… by Jojo-Schmitz
Hello. I'm using MuseScore3 v 6.2.54xxx on Windows 7 Ultimate 64. The Qt version is 5.9.9.
I would like to try this plugin, but I too can't get it to work. I've downloaded it and placed it in the default Plugins folder (C:\Users\User1\Documents\MuseScore3\Plugins), but it doesn't show up in the Plugins Manager.
I notice that the path to all the pre-installed plugins as shown in the Plugins Manager is "C:/Program Files/MuseScore 3/plugins" and not the default path as shown in Edit>Preferences>General>Folders. So I copied the plugin file (count-note-beats.qml) to C:\Program Files\MuseScore 3\plugins folder (the path shown in the Plugins Manager has forward slashes, but I am in Windows, which uses backslashes), but still the plugin count-note-beats does not show up. I have restarted MuseScore several times and also reloaded the plugins, but still it does not show up. I have even reinstalled MuseScore to make sure that the default path(s) is/are correct and repeated all of the above.
Can you suggest what might be wrong? Have other Windows users of MuseScore3 v 6.2.54xxx managed to get this plugin to work?
Thanks in advance.
In reply to Hello. I'm using MuseScore3… by Lestrad
That uses Qt 5.9, which doesn't support that ECMA 6 feature
In reply to Hello. I'm using MuseScore3… by Lestrad
But try the Windows 64bit artifact from my PR #9000
In reply to Buy try the artifacts from… by Jojo-Schmitz
I'm sorry, but I just don't know how to do that. Is there anywhere I can go to get help on how?
In reply to I'm sorry, but I just don't… by Lestrad
You'd need a GitHub account to see them
Then you should be able to grab https://github.com/musescore/MuseScore/suites/9717908385/artifacts/4660…
In reply to You'd need a GitHub account… by Jojo-Schmitz
Thanks. I was able to unzip everything, but I'm not sure what to do with it. Do I replace all the existing folders in my installation of MuseScore? Or do I need to reinstall?
In reply to Thanks. I was able to unzip… by Lestrad
I did the former, and the result is very unstable, to the point of being unusable.
In reply to Thanks. I was able to unzip… by Lestrad
Neither. Just locate and run MuseScore3.exe
In reply to Neither. Just locate and run… by Jojo-Schmitz
Okay, I uninstalled MuseScore and am running it directly from the .exe file (v 7, rev 366113d). I'm having two problems:
- The Plugins Manager dialog is empty, and reloading the plugins doesn't change that (I've copied the plugin file to the default Plugins folder created by MuseScore;
- Every time I close the program, it crashes:
Problem signature:
Problem Event Name: APPCRASH
Application Name: MuseScore3.exe
Application Version: 0.0.0.0
Application Timestamp: 639065c7
Fault Module Name: Qt5WebEngineCore.dll
Fault Module Version: 5.15.2.0
Fault Module Timestamp: 5fad38ab
Exception Code: 80000003
Exception Offset: 0000000001a7db9d
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1036
Additional Information 1: ef83
Additional Information 2: ef83216aaeb489fa0b4a154155c89c29
Additional Information 3: 7b7d
Additional Information 4: 7b7dd40229222fb083f30a2271262e4d
In reply to Okay, I uninstalled… by Lestrad
a) copy the plugin to MuseScore3Development
b) start MuseScore3.exe uwing the -w option, then disable the startcenter in preferences
In reply to a) copy the plugin to… by Jojo-Schmitz
Okay, now it's not crashing when I close the program. But the Plugins Manager is still empty. I tried elsewhere's solution - see below.
In reply to Hello. I'm using MuseScore3… by Lestrad
I ran the plugin from the Plugins Creator (in the Plugins menu) and it works for me. My specs are same as yours. EDIT: If you share your score I'll try it.
test.mscz
In reply to I ran the plugin from the… by elsewhere
I did that and get the following error when I hit "Run":
Running…
Creating component failed
line 9: Expected token `numeric literal'
In reply to I did that and get the… by Lestrad
That can't really be the case, on line 9 of that plugin is a comment
In reply to That can't really be the… by Jojo-Schmitz
In the edit window, line 9 is: ""
In reply to In the edit window, line 9… by Lestrad
?
In reply to ? by Jojo-Schmitz
In reply to <\code> by Lestrad
When I paste the code in it disappears.
In reply to When I paste the code in it… by Lestrad
That's not the plugin code, but an html page
In reply to That's not the plugin code,… by Jojo-Schmitz
That's the file I had downloaded from GitHub after clicking on "Go to file"...
Okay, I copied the code into a new plugin, and it seems to be recognized. I can see it and check it in the Plugins Manager. It added numbers to the first few measures of my file at some point, but I don't know what I did to get it to work. Now when I add new notes it no longer adds numbers.
Sorry about all this. But at least I'm getting somewhere thanks to you two.
In reply to I did that and get the… by Lestrad
More precise steps:
Put the plugin (attached) in your Musescore3/Plugins Folder.
Open the Plugin Creator and chose File/Open from there
Open the plugin & hit the Run button
count-note-beats.qml
In reply to More precise steps: Put the… by elsewhere
Update - (I see now that this was because the file I had was not the actual code but an XML file)
That's exactly what did, but I still get the error:
"Running…
Creating component failed
line 9: Expected token `numeric literal'"
In reply to I ran the plugin from the… by elsewhere
Whoa... Very nice, but is there a way to reduce the fractioning of beats to a half-beat and no less?
In reply to Whoa... Very nice, but is… by Lestrad
The attached rounds the beat count to 1 decimal.
count-note-beats-to-1-decimal.qml
Okay I managed to get it to run by copying the code into a new plugin and running it. Then I saved it and now it works on selected passages when I hit the shortcut I set from the Plugins Manager.
Thanks to both of you for your help and patience!
Les