Module Expr Str Import alias Assign NameStore ListLoad Str Str Str ClassDef bases NameLoad body Pass decorator_list Assign NameStore Num Assign NameStore TupleLoad NameLoad Str Str NameLoad Str Import alias If CompareEq Call AttributeLoad NameLoad attr Str Num Str body Assign NameStore Num orelse Assign NameStore Num ImportFrom alias ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword Num If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str body Raise NameLoad Str If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str body Raise NameLoad Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad While Num body Assign AttributeStore NameLoad attr Num TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num handlers ExceptHandler type NameLoad body Break Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num orelse If CompareEq NameLoad Str body If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpFloorDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Break Expr Call AttributeLoad NameLoad attr If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad AttributeLoad NameLoad attr body Raise NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Assign AttributeStore NameLoad attr Num If CompareEq NameLoad Num body Return Str If BoolOpAnd CompareGt AttributeLoad NameLoad attr Num NameLoad body Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad AttributeLoad NameLoad attr If CompareGt BinOpMult NameLoad AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpDiv BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult NameLoad AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr BinOpFloorDiv Call NameLoad NameLoad BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore AttributeStore NameLoad attr AttributeStore NameLoad attr NameStore NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num If CompareEq NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num Index Num Assign AttributeStore NameLoad attr BinOpFloorDiv BinOpAdd NameLoad Num Num orelse Raise NameLoad BinOpMod Str TupleLoad NameLoad Assign AttributeStore NameLoad attr BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Raise decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Raise NameLoad Str If CompareLt NameLoad Num body Raise NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Raise NameLoad Str If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad Num body Raise NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Raise NameLoad Str If CompareLtE NameLoad Num body Raise NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Raise NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body Raise NameLoad Str If CompareNotIn NameLoad TupleLoad Str body Raise NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad If AttributeLoad NameLoad attr body Raise NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Str Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Raise NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore BinOpFloorDiv Call NameLoad NameLoad BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareGt AttributeLoad NameLoad attr Num NameLoad body Import alias Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr BinOpMult Call NameLoad NameLoad AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Str If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Str If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert UnaryOpNot AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpDiv NameLoad BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMult BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str BinOpAdd Num AttributeLoad NameLoad attr Str Str Num NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr Num Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str BinOpAdd Num AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Str If CompareIn NameLoad TupleLoad Str Str body Return Call NameLoad NameLoad orelse If CompareIn NameLoad TupleLoad Str Str body Return Call NameLoad NameLoad orelse Raise NameLoad Str decorator_list Assign NameStore NameLoad
N/A N/A Stuff to parse WAVE files.

Usage.

Reading WAVE files:
      f = wave.open(file, 'r')
where file is either the name of a file or an open file pointer.
The open file pointer must have methods read(), seek(), and close().
When the setpos() and rewind() methods are not used, the seek()
method is not  necessary.

This returns an instance of a class with the following public methods:
      getnchannels()  -- returns number of audio channels (1 for
                         mono, 2 for stereo)
      getsampwidth()  -- returns sample width in bytes
      getframerate()  -- returns sampling frequency
      getnframes()    -- returns number of audio frames
      getcomptype()   -- returns compression type ('NONE' for linear samples)
      getcompname()   -- returns human-readable version of
                         compression type ('not compressed' linear samples)
      getparams()     -- returns a tuple consisting of all of the
                         above in the above order
      getmarkers()    -- returns None (for compatibility with the
                         aifc module)
      getmark(id)     -- raises an error since the mark does not
                         exist (for compatibility with the aifc module)
      readframes(n)   -- returns at most n frames of audio
      rewind()        -- rewind to the beginning of the audio stream
      setpos(pos)     -- seek to the specified position
      tell()          -- return the current position
      close()         -- close the instance (make it unusable)
The position returned by tell() and the position given to setpos()
are compatible and have nothing to do with the actual position in the
file.
The close() method is called automatically when the class instance
is destroyed.

Writing WAVE files:
      f = wave.open(file, 'w')
where file is either the name of a file or an open file pointer.
The open file pointer must have methods write(), tell(), seek(), and
close().

This returns an instance of a class with the following public methods:
      setnchannels(n) -- set the number of channels
      setsampwidth(n) -- set the sample width
      setframerate(n) -- set the frame rate
      setnframes(n)   -- set the number of frames
      setcomptype(type, name)
                      -- set the compression type and the
                         human-readable compression type
      setparams(tuple)
                      -- set all parameters at once
      tell()          -- return current position in output file
      writeframesraw(data)
                      -- write audio frames without pathing up the
                         file header
      writeframes(data)
                      -- write audio frames and patch up the file header
      close()         -- patch up the file header and close the
                         output file
You should set the parameters before the first writeframesraw or
writeframes.  The total number of frames does not need to be set,
but when it is set to the correct value, the header does not have to
be patched up.
It is best to first set all parameters, perhaps possibly the
compression type, and then write audio frames using writeframesraw.
When all frames have been written, either call writeframes('') or
close() to patch up the sizes in the header.
The close() method is called automatically when the class instance
is destroyed.
 N/A __builtin__ N/A __all__ N/A open openfp Error Error N/A Exception N/A N/A N/A N/A WAVE_FORMAT_PCM 1 N/A _array_fmts N/A None b h None l N/A struct N/A N/A N/A N/A struct pack h 1 N/A N/A big_endian 1 N/A N/A big_endian 0 chunk Chunk Wave_read N/A N/A N/A Variables used in this class:

    These variables are available to the user though appropriate
    methods of this class:
    _file -- the open file with methods read(), close(), and seek()
              set through the __init__() method
    _nchannels -- the number of audio channels
              available through the getnchannels() method
    _nframes -- the number of audio frames
              available through the getnframes() method
    _sampwidth -- the number of bytes per audio sample
              available through the getsampwidth() method
    _framerate -- the sampling frequency
              available through the getframerate() method
    _comptype -- the AIFF-C compression type ('NONE' if AIFF)
              available through the getcomptype() method
    _compname -- the human-readable AIFF-C compression type
              available through the getcomptype() method
    _soundpos -- the position in the audio stream
              available through the tell() method, set through the
              setpos() method

    These variables are used internally only:
    _fmt_chunk_read -- 1 iff the FMT chunk has been read
    _data_seek_needed -- 1 iff positioned correctly in audio
              file for readframes()
    _data_chunk -- instantiation of a chunk class for the DATA chunk
    _framesize -- size of one frame in the file
     initfp N/A N/A self file N/A N/A N/A N/A self _convert None N/A N/A self _soundpos 0 N/A N/A self _file N/A Chunk file bigendian 0 N/A N/A N/A N/A N/A self _file getname RIFF N/A N/A Error file does not start with RIFF id N/A N/A N/A N/A N/A self _file read 4 WAVE N/A N/A Error not a WAVE file N/A N/A self _fmt_chunk_read 0 N/A N/A self _data_chunk None N/A 1 N/A N/A N/A self _data_seek_needed 1 N/A N/A N/A chunk N/A Chunk N/A self _file bigendian 0 N/A N/A N/A EOFError N/A N/A N/A chunkname N/A N/A chunk getname N/A N/A chunkname fmt  N/A N/A N/A N/A self _read_fmt_chunk chunk N/A N/A self _fmt_chunk_read 1 N/A N/A N/A chunkname data N/A N/A N/A N/A self _fmt_chunk_read N/A N/A Error data chunk before fmt chunk N/A N/A self _data_chunk chunk N/A N/A self _nframes N/A N/A chunk chunksize N/A self _framesize N/A N/A self _data_seek_needed 0 N/A N/A N/A N/A chunk skip N/A N/A N/A N/A self _fmt_chunk_read N/A N/A self _data_chunk N/A N/A Error fmt chunk and/or data chunk missing N/A __init__ N/A N/A self f N/A N/A N/A N/A self _i_opened_the_file None N/A N/A isinstance f basestring N/A N/A f N/A N/A __builtin__ open f rb N/A N/A self _i_opened_the_file f N/A N/A N/A N/A N/A self initfp f N/A N/A N/A N/A N/A self _i_opened_the_file N/A N/A N/A N/A f close N/A N/A __del__ N/A N/A self N/A N/A N/A N/A N/A self close N/A getfp N/A N/A self N/A N/A N/A N/A self _file N/A rewind N/A N/A self N/A N/A N/A N/A self _data_seek_needed 1 N/A N/A self _soundpos 0 N/A close N/A N/A self N/A N/A N/A N/A self _i_opened_the_file N/A N/A N/A N/A N/A self _i_opened_the_file close N/A N/A self _i_opened_the_file None N/A N/A self _file None N/A tell N/A N/A self N/A N/A N/A N/A self _soundpos N/A getnchannels N/A N/A self N/A N/A N/A N/A self _nchannels N/A getnframes N/A N/A self N/A N/A N/A N/A self _nframes N/A getsampwidth N/A N/A self N/A N/A N/A N/A self _sampwidth N/A getframerate N/A N/A self N/A N/A N/A N/A self _framerate N/A getcomptype N/A N/A self N/A N/A N/A N/A self _comptype N/A getcompname N/A N/A self N/A N/A N/A N/A self _compname N/A getparams N/A N/A self N/A N/A N/A N/A N/A N/A self getnchannels N/A N/A self getsampwidth N/A N/A self getframerate N/A N/A self getnframes N/A N/A self getcomptype N/A N/A self getcompname N/A getmarkers N/A N/A self N/A N/A N/A None N/A getmark N/A N/A self id N/A N/A N/A Error no marks N/A setpos N/A N/A self pos N/A N/A N/A N/A N/A pos 0 N/A pos N/A self _nframes N/A N/A Error position not in range N/A N/A self _soundpos pos N/A N/A self _data_seek_needed 1 N/A readframes N/A N/A self nframes N/A N/A N/A N/A self _data_seek_needed N/A N/A N/A N/A N/A self _data_chunk seek 0 0 N/A pos N/A N/A self _soundpos N/A self _framesize N/A pos N/A N/A N/A N/A N/A self _data_chunk seek pos 0 N/A N/A self _data_seek_needed 0 N/A N/A nframes 0 N/A N/A N/A N/A N/A N/A self _sampwidth 1 big_endian N/A N/A array N/A chunk N/A self _data_chunk N/A data N/A N/A array array N/A _array_fmts N/A N/A self _sampwidth N/A nitems N/A nframes N/A self _nchannels N/A N/A N/A nitems N/A self _sampwidth N/A N/A chunk chunksize N/A chunk size_read N/A N/A nitems N/A N/A N/A chunk chunksize N/A chunk size_read N/A self _sampwidth N/A N/A N/A data fromfile N/A N/A chunk file file nitems N/A N/A chunk size_read N/A N/A chunk size_read N/A nitems N/A self _sampwidth N/A chunk N/A chunk file N/A N/A chunk size_read N/A N/A chunk size_read N/A nitems N/A self _sampwidth N/A N/A N/A data byteswap N/A data N/A N/A data tostring N/A N/A data N/A N/A N/A self _data_chunk read N/A nframes N/A self _framesize N/A N/A N/A self _convert data N/A N/A data N/A N/A self _convert data N/A N/A self _soundpos N/A N/A self _soundpos N/A N/A len data N/A N/A self _nchannels N/A self _sampwidth N/A data N/A _read_fmt_chunk N/A N/A self chunk N/A N/A N/A N/A wFormatTag N/A self _nchannels N/A self _framerate dwAvgBytesPerSec wBlockAlign N/A N/A struct unpack <HHLLH N/A N/A chunk read 14 N/A N/A wFormatTag WAVE_FORMAT_PCM N/A N/A sampwidth N/A N/A N/A struct unpack <H N/A N/A chunk read 2 N/A 0 N/A N/A self _sampwidth N/A N/A sampwidth 7 8 N/A N/A Error N/A unknown format: %r N/A wFormatTag N/A N/A self _framesize N/A N/A self _nchannels N/A self _sampwidth N/A N/A self _comptype NONE N/A N/A self _compname not compressed N/A N/A Wave_write N/A N/A N/A Variables used in this class:

    These variables are user settable through appropriate methods
    of this class:
    _file -- the open file with methods write(), close(), tell(), seek()
              set through the __init__() method
    _comptype -- the AIFF-C compression type ('NONE' in AIFF)
              set through the setcomptype() or setparams() method
    _compname -- the human-readable AIFF-C compression type
              set through the setcomptype() or setparams() method
    _nchannels -- the number of audio channels
              set through the setnchannels() or setparams() method
    _sampwidth -- the number of bytes per audio sample
              set through the setsampwidth() or setparams() method
    _framerate -- the sampling frequency
              set through the setframerate() or setparams() method
    _nframes -- the number of audio frames written to the header
              set through the setnframes() or setparams() method

    These variables are used internally only:
    _datalength -- the size of the audio samples written to the header
    _nframeswritten -- the number of frames actually written
    _datawritten -- the size of the audio samples actually written
     __init__ N/A N/A self f N/A N/A N/A N/A self _i_opened_the_file None N/A N/A isinstance f basestring N/A N/A f N/A N/A __builtin__ open f wb N/A N/A self _i_opened_the_file f N/A N/A N/A N/A N/A self initfp f N/A N/A N/A N/A N/A self _i_opened_the_file N/A N/A N/A N/A f close N/A N/A initfp N/A N/A self file N/A N/A N/A N/A self _file file N/A N/A self _convert None N/A N/A self _nchannels 0 N/A N/A self _sampwidth 0 N/A N/A self _framerate 0 N/A N/A self _nframes 0 N/A N/A self _nframeswritten 0 N/A N/A self _datawritten 0 N/A N/A self _datalength 0 N/A N/A self _headerwritten False N/A __del__ N/A N/A self N/A N/A N/A N/A N/A self close N/A setnchannels N/A N/A self nchannels N/A N/A N/A N/A self _datawritten N/A N/A Error cannot change parameters after starting to write N/A N/A nchannels 1 N/A N/A Error bad # of channels N/A N/A self _nchannels nchannels N/A getnchannels N/A N/A self N/A N/A N/A N/A N/A self _nchannels N/A N/A Error number of channels not set N/A N/A self _nchannels N/A setsampwidth N/A N/A self sampwidth N/A N/A N/A N/A self _datawritten N/A N/A Error cannot change parameters after starting to write N/A N/A N/A sampwidth 1 N/A sampwidth 4 N/A N/A Error bad sample width N/A N/A self _sampwidth sampwidth N/A getsampwidth N/A N/A self N/A N/A N/A N/A N/A self _sampwidth N/A N/A Error sample width not set N/A N/A self _sampwidth N/A setframerate N/A N/A self framerate N/A N/A N/A N/A self _datawritten N/A N/A Error cannot change parameters after starting to write N/A N/A framerate 0 N/A N/A Error bad frame rate N/A N/A self _framerate framerate N/A getframerate N/A N/A self N/A N/A N/A N/A N/A self _framerate N/A N/A Error frame rate not set N/A N/A self _framerate N/A setnframes N/A N/A self nframes N/A N/A N/A N/A self _datawritten N/A N/A Error cannot change parameters after starting to write N/A N/A self _nframes nframes N/A getnframes N/A N/A self N/A N/A N/A N/A self _nframeswritten N/A setcomptype N/A N/A self comptype compname N/A N/A N/A N/A self _datawritten N/A N/A Error cannot change parameters after starting to write N/A N/A comptype N/A NONE N/A N/A Error unsupported compression type N/A N/A self _comptype comptype N/A N/A self _compname compname N/A getcomptype N/A N/A self N/A N/A N/A N/A self _comptype N/A getcompname N/A N/A self N/A N/A N/A N/A self _compname N/A setparams N/A N/A self params N/A N/A N/A N/A nchannels sampwidth framerate nframes comptype compname params N/A N/A self _datawritten N/A N/A Error cannot change parameters after starting to write N/A N/A N/A self setnchannels nchannels N/A N/A N/A self setsampwidth sampwidth N/A N/A N/A self setframerate framerate N/A N/A N/A self setnframes nframes N/A N/A N/A self setcomptype comptype compname N/A getparams N/A N/A self N/A N/A N/A N/A N/A N/A self _nchannels N/A N/A self _sampwidth N/A N/A self _framerate N/A N/A Error not all parameters set N/A N/A N/A self _nchannels N/A self _sampwidth N/A self _framerate N/A self _nframes N/A self _comptype N/A self _compname N/A setmark N/A N/A self id pos name N/A N/A N/A Error setmark() not supported N/A getmark N/A N/A self id N/A N/A N/A Error no marks N/A getmarkers N/A N/A self N/A N/A N/A None N/A tell N/A N/A self N/A N/A N/A N/A self _nframeswritten N/A writeframesraw N/A N/A self data N/A N/A N/A N/A N/A self _ensure_header_written N/A len data N/A nframes N/A N/A len data N/A N/A self _sampwidth N/A self _nchannels N/A N/A self _convert N/A N/A data N/A N/A self _convert data N/A N/A N/A N/A self _sampwidth 1 big_endian N/A N/A array N/A data N/A N/A array array N/A _array_fmts N/A N/A self _sampwidth data N/A N/A N/A data byteswap N/A N/A N/A data tofile N/A self _file N/A N/A self _datawritten N/A N/A self _datawritten N/A N/A len data N/A self _sampwidth N/A N/A N/A N/A N/A self _file write data N/A N/A self _datawritten N/A N/A self _datawritten N/A len data N/A N/A self _nframeswritten N/A N/A self _nframeswritten nframes N/A writeframes N/A N/A self data N/A N/A N/A N/A N/A self writeframesraw data N/A N/A N/A self _datalength N/A self _datawritten N/A N/A N/A N/A self _patchheader N/A close N/A N/A self N/A N/A N/A N/A self _file N/A N/A N/A N/A self _ensure_header_written 0 N/A N/A N/A self _datalength N/A self _datawritten N/A N/A N/A N/A self _patchheader N/A N/A N/A N/A self _file flush N/A N/A self _file None N/A N/A self _i_opened_the_file N/A N/A N/A N/A N/A self _i_opened_the_file close N/A N/A self _i_opened_the_file None N/A _ensure_header_written N/A N/A self datasize N/A N/A N/A N/A N/A self _headerwritten N/A N/A N/A N/A self _nchannels N/A N/A Error # channels not specified N/A N/A N/A self _sampwidth N/A N/A Error sample width not specified N/A N/A N/A self _framerate N/A N/A Error sampling rate not specified N/A N/A N/A self _write_header datasize N/A _write_header N/A N/A self initlength N/A N/A N/A N/A N/A self _headerwritten N/A N/A N/A N/A self _file write RIFF N/A N/A N/A self _nframes N/A N/A N/A self _nframes N/A initlength N/A N/A self _nchannels N/A self _sampwidth N/A N/A self _datalength N/A N/A N/A self _nframes N/A self _nchannels N/A self _sampwidth N/A N/A self _form_length_pos N/A N/A N/A self _file tell N/A N/A N/A N/A self _file write N/A N/A struct pack <L4s4sLHHLLHH4s N/A 36 N/A self _datalength WAVE fmt  16 WAVE_FORMAT_PCM N/A self _nchannels N/A self _framerate N/A N/A N/A self _nchannels N/A self _framerate N/A self _sampwidth N/A N/A self _nchannels N/A self _sampwidth N/A N/A self _sampwidth 8 data N/A N/A self _data_length_pos N/A N/A N/A self _file tell N/A N/A N/A N/A self _file write N/A N/A struct pack <L N/A self _datalength N/A N/A self _headerwritten True N/A _patchheader N/A N/A self N/A N/A N/A N/A self _headerwritten N/A N/A N/A self _datawritten N/A self _datalength N/A N/A N/A curpos N/A N/A N/A self _file tell N/A N/A N/A N/A self _file seek N/A self _form_length_pos 0 N/A N/A N/A N/A self _file write N/A N/A struct pack <L N/A 36 N/A self _datawritten N/A N/A N/A N/A self _file seek N/A self _data_length_pos 0 N/A N/A N/A N/A self _file write N/A N/A struct pack <L N/A self _datawritten N/A N/A N/A N/A self _file seek curpos 0 N/A N/A self _datalength N/A self _datawritten N/A N/A open N/A N/A f mode N/A None N/A N/A N/A mode None N/A N/A N/A hasattr f mode N/A N/A mode N/A f mode N/A N/A mode rb N/A N/A mode N/A r rb N/A N/A N/A Wave_read f N/A N/A N/A mode N/A w wb N/A N/A N/A Wave_write f N/A N/A Error mode must be 'r', 'rb', 'w', or 'wb' N/A N/A openfp open