Since []float64 is computed from reading samples anyway, allow direct generation by inputting []float64. Also add the option to retrieve the values used to compute a new waveform from a io.Reader, so that the same waveform can be quickly regenerated.
Since
[]float64
is computed from reading samples anyway, allow direct generation by inputting[]float64
. Also add the option to retrieve the values used to compute a new waveform from aio.Reader
, so that the same waveform can be quickly regenerated.