Generate partial resampled data

```js
waveform.resample({ input_index: x, output_index: xx, scale: y, width: z });
```