uwacan.recordings.AudioFileRoller#

class AudioFileRoller(obj, duration=None, step=None, overlap=0)[source]#

Bases: TimeDataRoller

Rolling windows of time data.

Parameters:
objAudioFileRecording

The audio file wrapper to roll over.

durationfloat

The duration of each frame, in seconds.

stepfloat

The step between consecutive frames, in seconds.

overlapfloat

The overlap between consecutive frames, as a fraction of the duration.

Methods

numpy_frames([io_blocksize])

Generate numpy frames with data.

time_data()

Generate rolling frames of the contained data, as TimeData.

Inherited methods

Attributes

coords

The coords of the output frames.

dims

The dimensions of the output frames.

num_frames

The number of frames in this rolling output.

shape

The shape of the output frames.