Max For Live
GB.RangeModulo is a very simple MIDI device that folds MIDI notes inside a predefined range. If a note outside the range is played, it will be transposed back to the octave (or range) specified.
Download link : GB.RangeModulo.amxd.zip