Only notes of the track's assigned scale are accepted unaltered on MIDI input via an external controller. Other out-of-scale notes are scaled up or down to make sure that only notes in scale are played and recorded.
(
Given a track locked to a scale and track is armed, accepting input from an external controller
When I play a note on the external keyboard/controller
Then the note is played as-is if it's in scale, the note is scaled up or down to the next in-scale note if it's not in scale
)