code: def append_note(self, note, root, scale=0):
          
          root_val = note_to_val(root)
          note_val = note_to_val(note) - root_val + scale * 12
          if note_val not in self.components:
              self.components.append(note_val)
              self.components.sort()
docs: Append a note to quality
  
          :param str note: note to append on quality
          :param str root: root note of chord
          :param int scale: key scale