Wham Jammer adaptation problems

The compiler doesn't read your comments. It doesn't know which function should be called when it needs to handle a note on message. Your code is setting one function and then changing it's mind and setting a different function, overriding the first.