MuseScore 25/07/2015: MIDI Actions #4

I didn't write code on Friday, so I had to compensate on Saturday.
I started to implement MIDI Actions the way I described it before.
Now we have 2 places to store MIDI Actions:

  • In Score class (msc* file) - MIDI Actions of score.
  • In MuseScore class (reading from midi-actions.xml) - MIDI Actions available for all scores.

Using midi-actions.xml file for storing global actions solves the problem I described in the previous post: now we will be able to share user-defined events across several scores.
I implemented saving selected MIDI Actions and rendering them to midi, so playback works. Also I wrote several predefined actions, so now MIDI Actions in MuseScore work almost like before, but with different UI and architecture.