code: def analyze_chunks(data, freq, bits, chunksize=512):
      
      res = []
      while data != []:
          f = find_frequencies(data[:chunksize], freq, bits)
          res.append(sorted(find_notes(f), key=operator.itemgetter(1))[-1][0])
          data = data[chunksize:]
      return res
docs: Cut the one channel data in chunks and analyzes them separately.
  
      Making the chunksize a power of two works fastest.