code: def find_notes(freqTable, maxNote=100):
      
      res = [0] * 129
      n = Note()
      for (freq, ampl) in freqTable:
          if freq > 0 and ampl > 0:
              f = _find_log_index(freq)
              if f < maxNote:
                  res[f] += ampl
              else:
                  res[128] += ampl
      return [(Note().from_int(x) if x < 128 else None, n) for (x, n) in
              enumerate(res)]
docs: Convert the (frequencies, amplitude) list to a (Note, amplitude) list.