# decompyle3 version 3.9.0
# Python bytecode version base 3.7.0 (3394)
# Decompiled from: Python 3.7.16 (default, Jan 17 2023, 09:28:58)
# [Clang 14.0.6 ]
# Embedded file name: output/Live/mac_universal_64_static/Release/python-bundle/MIDI Remote Scripts/SL_MkIII/drum_group.py
# Compiled at: 2023-11-21 10:21:18
# Size of source mod 2**32: 713 bytes
from ableton.v2.control_surface.components import DrumGroupComponent as DrumGroupComponentBase


class DrumGroupComponent(DrumGroupComponentBase):
    def set_matrix(self, matrix):
        if matrix is None:
            if self.matrix.control_elements is not None:
                for button in self.matrix.control_elements:
                    button.clear_send_cache()
                    button.reset()

        super().set_matrix(matrix)
