musescore/MuseScore — pull request #1264 by heuchi (2014-09-02 11:12:58+00:00)
Title: [plugins] fix adding notes using newElement() and cursor.add()

This provides a way for a plugin to add notes to existing chords.
(see implode.qml at https://github.com/heuchi/plode for a demonstration)

Added wrappers for properties pitch, tpc1 and tpc2 in Note to avoid crashes due to uninitialized pointer.
Fixed cursor.add to take care of setting a note's chord property to avoid crashes.