MIDIpal Scaled Chord Memory

How hard would it be to ad a scale to the chord memory feature. So when you transpose the chord, it only plays notes in that scale.

I’m thinking something like this:
http://www.logic-cafe.com/lc/index.php/interval-chord-constructor-for-logic-pro-logic-pro-x

I’m a front end dev. I haven’t built anything with python/C++ before.