Clip the MIDI tick range to the range of the sample period.