def add_note(self, note, length, location='END', volume=None):
        """Add a note, or if a list, add a chord."""
        if not isinstance(note, list):
            note = [note]

        if location == 'END':
            location = len(self.data) / 44100.0

        if not isinstance(volume, list):
            volume = [volume]
        if volume[0] == None:
            volume = [len(note)/float(self.volume)] * len(note)
            #By default, when adding a chord, set equal level for each
            #component note, such that the sum volume is self.volume
        else:
            volume = volume + [volume[-1]]*(len(note) - len(volume))
            #Otherwise, pad volume by repeating the final level so that we have
            #enough level values for each note

        for item, level in zip(note, volume):
            if item[-1] not in '0123456789':
                item += str(self.octave)

            self.add_wave(note_to_frequency(item, self.octave), length, location, level)
dataset/ETHPy150Open jdan/Melopy/melopy/melopy.py/Melopy.add_note/swapped operands of `/`