(self, id, editor_mode=None, note_duration=None,
                       loop_start=None, loop_end=None)
Sets properteis for a pattern.

        Args:
          id: The pattern ID. (0-63)
          editor_mode: 0 for pitch mode, 1 for note mode, None to leave
            unchanged.
          note_duration: The duration for each note in the pattern, in 1/128ths
            of a second. (0-255) None to leave unchanged.
          loop_start: The loop range start, as a note number (0-63). None to
            leave unchanged.
          loop_end: The loop range end, as a note number (0-63). None to
            leave unchanged.
Sets properteis for a pattern.
Sets properteis for a pattern .
def set_properties(self, id, editor_mode=None, note_duration=None,
                       loop_start=None, loop_end=None):
        """Sets properteis for a pattern.

        Args:
          id: The pattern ID. (0-63)
          editor_mode: 0 for pitch mode, 1 for note mode, None to leave
            unchanged.
          note_duration: The duration for each note in the pattern, in 1/128ths
            of a second. (0-255) None to leave unchanged.
          loop_start: The loop range start, as a note number (0-63). None to
            leave unchanged.
          loop_end: The loop range end, as a note number (0-63). None to
            leave unchanged.
        """
        # (The asserts are only appropriate if the cart uses the sfx memory
        # for actual sfx, which not all carts do. Keeping them for
        # documentation purposes.)
        if editor_mode is not None:
            # assert 0 <= editor_mode <= 1
            self._data[id * 68 + 64] = editor_mode
        if note_duration is not None:
            # assert 0 <= note_duration <= 255
            self._data[id * 68 + 65] = note_duration
        if loop_start is not None:
            # assert 0 <= loop_start <= 63
            self._data[id * 68 + 66] = loop_start
        if loop_end is not None:
            # assert 0 <= loop_end <= 63
            self._data[id * 68 + 67] = loop_end
def set_properties ( self , id , editor_mode = None , note_duration = None , loop_start = None , loop_end = None ) : # (The asserts are only appropriate if the cart uses the sfx memory # for actual sfx, which not all carts do. Keeping them for # documentation purposes.) if editor_mode is not None : # assert 0 <= editor_mode <= 1 self . _data [ id * 68 + 64 ] = editor_mode if note_duration is not None : # assert 0 <= note_duration <= 255 self . _data [ id * 68 + 65 ] = note_duration if loop_start is not None : # assert 0 <= loop_start <= 63 self . _data [ id * 68 + 66 ] = loop_start if loop_end is not None : # assert 0 <= loop_end <= 63 self . _data [ id * 68 + 67 ] = loop_end