mrcrowbar.lib.audio.base module

class mrcrowbar.lib.audio.base.Wave(parent, source, channels, sample_rate, format_type, field_size, signedness, endian)[source]

Bases: mrcrowbar.views.View

View for for accessing PCM wave audio.

parent
Parent object.
source
Raw audio data, in bytes.
channels
Number of audio channels.
sample_rate
Playback sample rate, in Hz.
format_type
Python type corresponding to the sample format. Either int or float.
field_size
Number of bytes per sample.
signedness
Signedness of sample format. Either ‘signed’ or ‘unsigned’.
endian
Endianness of sample format. Either ‘big’, ‘little’ or None.
ansi_format(width=64, height=12)[source]
channels
endian
field_size
format_type
normalised()[source]
play(interpolation=<AudioInterpolation.LINEAR: 1>)[source]
print(*args, **kwargs)[source]

Print the graphical version of the results produced by ansi_format().

sample_rate
signedness
source