Waveform.from_frames_of_silence()¶
- static Waveform.from_frames_of_silence(frame_rate_hz, num_channels, num_frames)¶
Creates a silent waveform of
num_frames
frames.Example
Creating 1000 frames of silence (in stereo).
>>> from babycat import Waveform >>> Waveform.from_frames_of_silence( ... frame_rate_hz=44100, ... num_channels=2, ... num_frames=1000, ... ) <babycat.Waveform: 1000 frames, 2 channels, 44100 hz>