scisonify.Sonify.to_waveform
- Sonify.to_waveform(wave='sine', note_length=1.0)
Converts a normalized data variable into a waveform.
Parameters
- wave: optional, str
Wave to use for oscillator, one of [‘sine’, ‘square’, ‘sawtooth’]
Returns
- waveform: np.ndarray
An array of length int(note_length * self.fs) * len(self._data) containing len(self._data) of duration note_length computed using the provided wave.