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
Mscore-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to