ine at endpoints; i.e., if we just strung together</span>
0124 <span class="comment">% the splines as is, the last sample of each waveform would be interpolated</span>
0125 <span class="comment">% using the first polynomial from the next waveform.  So we add a DC polynomial</span>
0126 <span class="comment">% to the end of each spike whose value equals to the last sample of the spike.</span>
0127 <span class="comment">% Now after stringing together, interpolation at ((r-1)*numsamples + [1:numsamples])</span