code: def __init__(self, output, streaming=False, overwrite=False):
      super(AubioEncoder, self).__init__()
  
      if isinstance(output, str):
          import os.path
  
          if os.path.isdir(output):
              raise IOError(
                  "Encoder output must be a file, not a directory"
              )
          elif os.path.isfile(output) and not overwrite:
              raise IOError(
                  "Encoder output %s exists, but overwrite set to False"
              )
          self.filename = output
      else:
          self.filename = None
      self.streaming = streaming
  
      if not self.filename and not self.streaming:
          raise Exception("Must give an output")
  
      self.eod = False
      self.metadata = None
      self.num_samples = 0
  
file_path: TimeSide/timeside/core/aubio_encoder.py
imports: import aubio
  import numpy
  from timeside.core import Processor, implements, interfacedoc, abstract
  from timeside.core.api import IEncoder
label_desc: Use image node_id 1 to create a new AubioEncoder object from inherited base classes: Processor with example: obj = AubioEncoder(output, streaming, overwrite)