pt2_instrument function

Extract or replace a sample index from a ProTracker pattern