Serializer
Hello,
the "serializer" plugin doesn't seem to work.
https://musescore.org/en/project/music-serializer
I select a melody, then I start the plugin but nothing happens.
I use MuseScore 3.6.1, Qt5 on Ubuntu 18.04.
What can this be due to?
Thanks,
m.
Comments
Open in the Plugin Editor, try to run, what error messages do you get?
In reply to Open in the Plugin Editor,… by Jojo-Schmitz
90:-1: TypeError: Property 'includes' of object 0,1,2,3,4,5,6,7,8,9,10,11 is not a function
90:-1: TypeError: Property 'includes' of object 0,1,2,3,4,5,6,7,8,9,10,11 is not a function
90:-1: TypeError: Property 'includes' of object 0,1,2,3,4,5,6,7,8,9,10,11 is not a function
Warning: file:///home/Documents/MuseScore3/Plugin/serializer_2.qml:90: TypeError: Property 'includes' of object 0,1,2,3,4,5,6,7,8,9,10,11 is not a function
In reply to 90:-1: TypeError: Property … by [DELETED] 37297940
What plugin exactly and from where? Why is it called serialized_2.qml on your system, but serializer.qml on thar plugin page?
What is the code at that line 90?
In reply to What plugin exactly and from… by Jojo-Schmitz
Hello,
the code at line 90 is this:
if (note_list.includes(note.pitch%12)){
I downloaded Serializer plugin from here:
https://musescore.org/en/project/music-serializer
The downloaded file is called: serializer_2.qml (and not serializer.qml).
Again i tried to reload it into the plugin editor, run it , but always gives me the same errors:
90:-1: TypeError: Property 'includes' of object 0,1,2,3,4,5,6,7,8,9,10,11 is not a function
Warning: file:///home/Documents/MuseScore3/Plugin/serializer_2.qml:90: TypeError: Property 'includes' of object 0,1,2,3,4,5,6,7,8,9,10,11 is not a function
Thanks,
m.
In reply to Hello, Hello, the code at… by [DELETED] 37297940
Hmm, probably best to report this in that plugin's issue tracker
In reply to Hmm, probably best to report… by Jojo-Schmitz
Jojo, this plugin doesn't seem to work in Musescore 3. Perhaps I don't know how to use it? It does show up as loaded plugin under "Notes" but doesn't activate when I select a group of notes on a staff. Thanks for any feedback you may have.
https://github.com/matthewd0123/musescore-serializer-plugin
In reply to Jojo, this plugin doesn't… by artoffugue333
What does is say when run from the plugin creator?
In reply to What does is say when run… by Jojo-Schmitz
Experiment with chatgpt:
The error message you provided indicates that there is an issue with the line of code that uses the includes function on the array object. The error occurs because the includes function is not available on a string that represents an array like "0,1,2,3,4,5,6,7,8,9,10,11". To fix this, you need to convert this string into an actual array.
Replace the following line of code:
if (note_list.includes(note.pitch%12)){
with:
if (note_list.indexOf(note.pitch % 12) !== -1) {
Explanation: The indexOf function returns the index of the specified element in the array, or -1 if the element is not found. This effectively achieves the same check as the includes function in this context.
It actually works .. (MS3)
In reply to Experiment with chatgpt: The… by graffesmusic
Very interesting: Now somewone would need to create a PR against that GitHub repo ;-)
In reply to Very interesting: Now… by Jojo-Schmitz
Done.
https://github.com/matthewd0123/musescore-serializer-plugin/pull/2
In reply to 90:-1: TypeError: Property … by [DELETED] 37297940
Apparently a screwup of mine, under the assumption that the version on GitHub actually works. It doesn't, but but the original version from the plugin page does
In reply to Apparently a screwup of mine… by Jojo-Schmitz
Musescore 4 Version
In reply to Musescore 4 Version by graffesmusic
I've tried the revised plugins for MS 3 and 4 with no success. I've enabled the plugin from the menu, pull up the score, select the 12 notes in the range (one staff only), and nothing happens? How do you actually run the tool on the score? Hit enter?
Note: On very first try in MS 4, a window did pop up to set the pivot note (default is C), but that window didn't pop up on all subsequent tries, despite closing the program and reloading the plugins several times. It's like it's corrupting itself after loading it?
Can you provide step by step instructions? The demo picture shows the notes colored after they're serialized, but I see no instructions about how to actually run the tool.I do appreciate all your efforts and prompt responses!
In reply to I've tried the revised… by artoffugue333
The demo picture https://musescore.org/en/project/music-serializer
shows on the first line the original notes, and on the second line the output of the plugin (that would be 'serialized').
This is exactly what this plugin does.
I don't see any popup code in the plugin. There is no coloring.
Description of the plugin:
This plugin takes the notes of a melody and turns them into a tone row. It "serializes" the first twelve notes of the piece and then repeats that tone row throughout the rest of the piece.
(i am not the author of this plugin, nor have i any interest in serialized music - i just made it working - as is - for ms4)
In reply to Musescore 4 Version by graffesmusic
Clarification: serializer.qml does NOT work for MS 3 or MS 4. But serializer_MS4.qml works for both. I was confused about what works for MS 3 because of the filename. I suggest the filename for serializer_MS4.qml be changed to drop _MS4 because it may confuse other dummies like me (I'm probably the only dummy, though;)
Thanks to everyone who worked on this. I really appreciate it!
In reply to Apparently a screwup of mine… by Jojo-Schmitz
jojo - see my last reply to graffesmusic below.
In reply to jojo - see my last reply to… by artoffugue333
I believe the plugin page has it correct