(some of the) missing objects/properties in the plugin framework
Reported version
3.0
Type
Plugins
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project
Quite some things that used to be available to plugins in v2 no longer are in v3.
The following are those I already noticed I'm going to need to port the plugins I have written.
- Score.parts
- Part (at least needs Part.startTrack and Part.endTrack)
- Note.accidental
- Note.accidentalType
- Accidental (at least needs Accidental.hasBracket and Accidental.color)
I just began porting, so I'll most probably find more things, which I'm going to add here.
Comments
I'm working on this and have the non-GUI versions of the courtesy accidental plugins working again. It is most probably not yet finished, but I've created a pull request PR to see, if I'm doing things right.
I've also added Excerpts to the PR which are needed for the batch converter plugin.
I've added access to Segment.annotations to the PR, which I'd consider finished for now.
As I see you are working on missing API functions: could you try to make this plug-in working again?
https://musescore.org/de/project/generate-notes-chords-annotations
I use it very often (resp. an improved version that you can find here: https://github.com/berteh/musescore-chordsToNotes/issues/9 )
Would be fine to have this working in V3. It's for me the main reason not to switch to V3.
In reply to As I see you are working on… by Bacchushlg
The chordToNotes plugin uses Segment.annotations which would be provided by my PR.
However, I don't think a plugin can add chords currently. You might want to open a new issue for that, since some discussion will be needed, how to provide this functionality to plugins. (Adding back the old way of constructing Chord elements in the plugin or extending the Cursor).
In reply to The chordToNotes plugin uses… by heuchi
Maybe it's better, if you create this issue, because you can better define what will be needed?!
Just to tell about one difficulty that I had (and was unable to solve):
The note heads that I created have the correct duration, but the chord duration (played) was not correct. I found no way how to solve this.
In reply to Maybe it's better, if you… by Bacchushlg
I created #285030: Plugins cannot add chords and can add notes only in very limited ways for this.
Fixed in branch master, commit 4c30227d05
fix #283179 add back some objects and properties to plugin framework
Fixed in branch master, commit ec099095cb
_Merge pull request #4631 from heuchi/283179-plugin-api
fix #283179: Add some objects and properties to plugin api_
Fixed in branch 3.0.5, commit a5dbd5ca57
_Merge pull request #4631 from heuchi/283179-plugin-api
fix #283179: Add some objects and properties to plugin api_
Automatically closed -- issue fixed for 2 weeks with no activity.