This is an interesting lecture by Geert Bevin on Arduino coding for a MIDI instrument named the LinnStrument. The ARM CPU is the same one as used in the Due. The lectures touches on various software problems and solutions.
You can start at 19:20 if you want to skip the demonstration of the LinnStrument. Geert is a musician as well as a software developer.