means to restrict midi to specific key?

Is there any way to use a midi insert or other means to restrict all notes to play within a specific key?

thanks

The Logical editor allows you to change the notes to a specific key. There is an operation called “transpose to scale”. The Transformer can probably do this live on the MIDI insert. You could either delete the notes not in the key, or change all the out of key notes to the desired ones. Check out the preset “delete black keys”.