Generate partial resampled data

```javascript
waveform.resample({ from: x, to: y, sample_rate: z });
```