class_docstr: 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
class_docstr_tok: ["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"]
code: def setparams(self, params):
      (
          nchannels,
          sampwidth,
          framerate,
          nframes,
          comptype,
          compname,
      ) = params
      if self._datawritten:
          raise Error(
              "cannot change parameters after starting to write"
          )
      self.setnchannels(nchannels)
      self.setsampwidth(sampwidth)
      self.setframerate(framerate)
      self.setnframes(nframes)
      self.setcomptype(comptype, compname)
  
imports: from collections import namedtuple
  import builtins
  import struct
  import sys
label_desc: Use image node_id 17 for calling the Wave_write obj's underlying member method code with example usage: obj.setparams(params) without return types