pytimbre.audio.ChunkInformation

class pytimbre.audio.ChunkInformation(name, size, offset=0)

Bases: object

This class contains simple information about the location of the various chunks within the wav file.

__init__(name, size, offset=0)

Default constructor that inserts the information into the correct object so that the chunk can be discovered at a later time :param name: str - the name of the chunk :param size: int - the size in bytes of the chunk :param offset: int - the offset within the file of the first byte of this chunk - this is past the name and size

elements of the chunk (i.e. the chunk start is actually offset - 16)

Methods

__init__(name, size[, offset])

Default constructor that inserts the information into the correct object so that the chunk can be discovered at a later time :param name: str - the name of the chunk :param size: int - the size in bytes of the chunk :param offset: int - the offset within the file of the first byte of this chunk - this is past the name and size elements of the chunk (i.e. the chunk start is actually offset - 16).

Attributes

chunk_name

chunk_offset

chunk_size