Plugin get reference on Glyphs
Is there a way using the MuseScore Plugin API to get references to individual glyphs to get their bounding boxes? For example, get the bounding box of individual sharps/flats in a key-signature, digits in a time-signature or tuplet or of the individual eighth rests in a 128th rest.
Also I noticed that the issue described here https://musescore.org/en/node/293837 still persists as of now in MuseScore 3.6.2 Plugin-API.
I need those information to create data for Optical Music Recognition directly from any musicxml via plugin.
Will MuseScore 4 plugin API allow for this?
Comments
#293837: An approach is needed to identify unique MuseScore objects from within the PluginAPI. ist seit langem gefixt
Antwort auf #293837: An approach is… von Jojo-Schmitz
with a plugin like this:
import QtQuick 2.0
import MuseScore 3.0
import FileIO 3.0
MuseScore {
version: "3.0"
description: "Tokenize a score for OMR"
menuPath: "Plugins.Tokenizer"
onRun: {
if (!curScore)
Qt.quit();
var cursor = curScore.newCursor();
cursor.rewind(Cursor.SCORE_START);
}
}
I get different system objects for example dispite several measures being in same system
Debug: ----- Measure 0 -----
Debug: Ms::PluginAPI::Element(0xeefa040)
Debug: ----- Measure 1 -----
Debug: Ms::PluginAPI::Element(0xeefa490)
Debug: ----- Measure 2 -----
Debug: Ms::PluginAPI::Element(0xeefb450)
Debug: ----- Measure 3 -----
Debug: Ms::PluginAPI::Element(0xeefaa00)
...
checking these objects for equality (sys1 == sys2) will also always return false
Antwort auf with a plugin like this:… von harmony8
Ich fürchte, ich verstehe das Problem nicht.
Abgesehen davon wäre es vermutlich besser dieses im englischen Forenteil zu erläutern
Antwort auf Ich fürchte, ich verstehe… von Jojo-Schmitz
ich mache dann 2 neue threads in englisch auf