I even cannot build your project without an error message. Far away from checking assembly code. Why don't you use C-language?
It builds on my machine, I´m using 64 bit Windows but either tried on a 32 bit OS and also builds well.
You need to send MIDI messages in order to make it work.
The case here is , when uncomment DAC9 config and start lines, then burning the app, it behaves strange.
Have not tried in run time to change config.
On the C side I´m on my way slowly, don´t now why mi head refuses to grasp C concepts :-)
Would you recommend me a C book with full of examples to try? Cypress used to have good App Notes with a bunch of code but not any more.