csound blue (java) has something where a csound instruments score can be moved and the start and the stop time of the score is changed according to where the user places it (It is a long skinny rectangle).. A simular device is found amoung many sound editors only I don't realy need to know what a wav file looks like though just a simple retanglar shap..

hopefully that helps