@eric89gxl @t3on
This should take care of adjusting the stim channel.

one dummy sample is added to the end of the signal before interpolating, to make sure that sfreq_new / sfreq_old = max_samp / samp.