class_docstr: File decoder based on aubio 
class_docstr_tok: ["File","decoder","based","on","aubio"]
code: def totalframes(self):
      if self.input_samplerate == self.output_samplerate:
          return self.input_totalframes
      else:
          ratio = self.output_samplerate / self.input_samplerate
          return int(self.input_totalframes * ratio)
  
file_path: TimeSide/timeside/plugins/decoder/aubio.py
imports: from timeside.core.decoder import Decoder, IDecoder, implements, interfacedoc
  from timeside.plugins.decoder.utils import get_sha1, get_media_uri_info
  import aubio
  import mimetypes
label_desc: Use image node_id 9 for calling the AubioDecoder obj's underlying member method code with example usage: obj.totalframes() and returns: self, int