original_docstring: Write an audio content as a Audio Interchange File Format file.
  
          :param filename (str) output filename.
          :param frames (str) the frames to write
  
          
docstring: Write an audio content as a Audio Interchange File Format file.
  :param filename (str) output filename.
  :param frames (str) the frames to write
docstring_tokens: Write an audio content as a Audio Interchange File Format file . : param filename ( str ) output filename . : param frames ( str ) the frames to write
code: def save_fragment(self, filename, frames):
          """Write an audio content as a Audio Interchange File Format file.
  
          :param filename (str) output filename.
          :param frames (str) the frames to write
  
          """
          fp = open(u(filename), "w")
          f = aifc.Aifc_write(fp)
          f.setnchannels(self.get_nchannels())
          f.setsampwidth(self.get_sampwidth())
          f.setframerate(self.get_framerate())
          f.setnframes(len(frames)/self.get_nchannels()/self.get_sampwidth())
          try:
              AiffIO._write_frames(f, frames)
          except Exception:
              raise
          finally:
              f.close()
code_tokens: def save_fragment ( self , filename , frames ) : fp = open ( u ( filename ) , "w" ) f = aifc . Aifc_write ( fp ) f . setnchannels ( self . get_nchannels ( ) ) f . setsampwidth ( self . get_sampwidth ( ) ) f . setframerate ( self . get_framerate ( ) ) f . setnframes ( len ( frames ) / self . get_nchannels ( ) / self . get_sampwidth ( ) ) try : AiffIO . _write_frames ( f , frames ) except Exception : raise finally : f . close ( )
short_docstring: Write an audio content as a Audio Interchange File Format file.
short_docstring_tokens: Write an audio content as a Audio Interchange File Format file .
comment: """Write an audio content as a Audio Interchange File Format file.
  
          :param filename (str) output filename.
          :param frames (str) the frames to write
  
          """