Quantcast

plugin creation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

plugin creation

Daniel Gibby
Is this the correct list for musescore plugin development questions?

I used old plugins from 1.0, and found some of them useful. Of course, those same plugins don't work in 2.0. (I'd be glad to find out I'm mistaken about that).

So I'm working on recreating what I need as 2.0 plugins.
I've looked at the example plugins for help, but I don't see one function which will insert a measure at the current cursor. Is there such a thing?


Thanks!
Daniel


------------------------------------------------------------------------------

_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: plugin creation

dangby
I figured it would be something like this to insert a measure at the beginning of the score, but I'm missing something and it isn't working.
            var cursor = curScore.newCursor();
            cursor.rewind(0) // beginning of score
            // curScore.startCmd(); // unnecessary?
            var newMeasure = newElement(Element.MEASURE);
            // what should go here so that the measure is actually added at the current location?
            // should the cmd function somehow be used?
            curScore.endCmd(); // unnecessary?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: plugin creation

lasconic
Administrator
Most of the discussion regarding plugin development happens here https://musescore.org/en/forum/443

lasconic

2015-09-13 1:00 GMT+02:00 dangby <[hidden email]>:
I figured it would be something like this to insert a measure at the
beginning of the score, but I'm missing something and it isn't working.
            var cursor = curScore.newCursor();
            cursor.rewind(0) // beginning of score
            // curScore.startCmd(); // unnecessary?
            var newMeasure = newElement(Element.MEASURE);
            // what should go here so that the measure is actually added at
the current location?
            // should the cmd function somehow be used?
            curScore.endCmd(); // unnecessary?




--
View this message in context: http://dev-list.musescore.org/plugin-creation-tp7579515p7579516.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------

_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Loading...