Musical scales that lock midi notes

I know I could use “Transpose Snap” but I’m not sure if it does what I’m requesting here.
I think it would be so useful to have a dropdown which permits you to select all available scales and block some midi notes when comes in.
Let’s say I choose major C, all white keys can be played, while black kes can not.
I think it would be really easier to compose music this way.